u = borrows / (cash + borrows). The curve has three coefficients set by the admin:
- At low utilization the linear term dominates, so borrowing is cheap.
- As utilization approaches 100%, the
u^32andu^64terms take over and the rate climbs steeply. That pulls in new lenders and pushes borrowers to repay before the pool runs dry. - An empty pool (
u = 0) charges nothing.
SECONDS_PER_YEAR = 31,556,952).
Where interest goes
Interest accrues on every pool touch (and onpublic_refresh_reserve). A reserve-factor slice goes to accrued_protocol_fees. The rest increases total_borrow_assets, which raises the value of every vToken.
Reserve account. Read them on-chain rather than assuming defaults.
