# Malicious Lenders can Increase the Interest owed by Borrowers Due to Wrong `UtilizationRate` Calculation

Fraxlend utilization rate divides borrows by available (not total) assets, letting lenders spam addInterest to inflate borrower interest >10%/day.

- Payout: Audit contest
- Severity: medium
- Program: Peapods Finance
- Found by: Honour
- Disclosed: 2025-01-08
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2025-01-peapods-finance-judging/issues/331
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-01-peapods-finance%3AM-16
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:medium tech:evm tech:solidity technique:source-review vuln:accounting-error vuln:business-logic

**Target:** FraxlendPairCore.sol _addInterest / utilization rate
**Root cause:** Utilization rate computed as totalBorrow/(totalAssets - totalBorrow) instead of totalBorrow/totalAssets, overstating utilization and triggering interest accrual when none is warranted.
**Steps:**
1. Deploy Fraxlend pair with variable rate (MIN_TARGET_UTIL=60, MAX_TARGET_UTIL=70).
2. Deposit 100 assets, loan 50 so utilization should be 50%.
3. Call `addInterest()` every block/day with no state change.
4. Observe `_prevUtilizationRate` computed as 50/(100-50)=1.0 vs correct 0.5, so `_rateChange` exceeds threshold and interest accrues each call.
5. Repeat daily; borrower pays ~1.49% vs correct ~1.37% over 30 days, or rate jumps 12.25%→22.89% in one day above vertex.
**How found:** Code review of _addInterest and _totalAssetAvailable; noticed utilization formula divides by available assets rather than total, confirmed with protocol team that correct formula is borrowed/(borrowed+unborrowed).
**Exploitation:** Lender repeatedly calls addInterest (every block) so the miscomputed utilization keeps passing the rate-change threshold, accruing extra interest from borrowers that is captured by lenders.
**Insight:** When auditing lending interest accrual, verify utilization = borrows/total supply, not borrows/available liquidity; the latter spikes near full utilization and can be gamed by permissionless accrual calls.

