InterestRateModel
The interest rate model used by UTokens
BORROW_RATE_MAX_MANTISSA
Maximum borrow rate that can ever be applied (0.005% / block)
interestRatePerBlock
IInterest rate per block
ReserveFactorExceeded
BorrowRateExceeded
LogNewInterestParams
@dev Update interest parameters event @param interestRate New interest rate, 1e18 = 100%
constructor
getBorrowRate
Get borrow rate per block
getSupplyRate
Get supply rate for given reserve factor If reserve factor is 100% interest acrues to the reserves If reserves factor is 0 interest acrues to uDAI minters
Parameters
setInterestRate
Set new interest rate per block Interest rate per block must be less than the max rate 0.005% / block
Parameters
Last updated