
Euler · Reads onchain state
Reads what an Euler vault charges borrowers, per second and as an APY. interestRate is the vault's interest rate model evaluated at its current cash and borrows, a per-second rate at 27 decimals; the action compounds it over the vault's year into borrowApy. Suppliers earn that rate on the borrowed share of the vault, less the vault's interest fee. Reach for it to repay a borrow when its rate crosses a ceiling, or to borrow from whichever vault charges less.