# Users can lower the interest rate by dividing a loan into multiple smaller loans

Teller's interest rate uses post-borrow utilization, letting borrowers split a loan into smaller sequential loans to pay lower APR.

- Payout: Audit contest
- Severity: medium
- Program: Teller
- Found by: KupiaSec
- Disclosed: 2024-11-16
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2024-11-teller-finance-update-judging/issues/34
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-11-teller-finance-update%3AM-2
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:medium tech:solidity technique:source-review vuln:accounting-error vuln:business-logic

**Target:** LenderCommitmentGroup_Smart.getMinInterestRate / getPoolUtilizationRatio
**Root cause:** getPoolUtilizationRatio includes the new loan amount (activeLoansAmountDelta) in utilization, so each incremental borrow is priced at a lower utilization than the final state; splitting a loan into many small borrows averages a lower APR than a single large borrow.
**Steps:**
1. Set interestRateLowerBound=0, interestRateUpperBound=800 (8%), pool total estimated value=$20000, outstanding principal=$5000.
2. Borrow $10000 in one call: utilization=(5000+10000)/20000=75%, APR=6%.
3. Instead borrow $1000 ten times sequentially; each call's utilization uses the accumulated principal plus that $1000 delta: (5000+1000)/20000=30%→2.4%, then (6000+1000)/20000=35%→2.8%, ... up to (14000+1000)/20000=75%→6%.
4. Average APR across the ten loans = 4.2%, versus 6% for the single loan.
**How found:** Code review of getMinInterestRate/getPoolUtilizationRatio noticing the delta is added to outstanding principal before computing utilization, so the rate depends on borrow granularity.
**Exploitation:** Borrower repeatedly calls the borrow function with small amounts instead of one large amount, paying a lower blended interest rate on the same total principal.
**Insight:** When a price/rate is a function of post-action state, check whether splitting an action into multiple calls changes the average price; utilization-based interest models are especially prone to this granularity arbitrage.

