InterestRateCalculator
Interest Rate Model
When capital is available: low interest rates to encourage borrowing.
When capital is scarce: high interest rates to encourage repayments of debt and additional supplying.
Borrow Interest Rate
Supply Interest rate
The borrow interest rates paid are distributed as yield for Token holders who have supplied to the protocol, excluding a share of yields sent to the ecosystem reserve defined by the reserve factor. This interest rate is generated on the asset that is borrowed out then shared among all the liquidity providers. The supply APY is:
Model Parameters
implement
Calculate deposit and borrowing rates using the total deposit amount, total borrowing amount, and reserve factor.
call params
return value
Last updated