LinearInterestRateModel
Linear interest rate model, similar to which Aave uses: https://docs.aave.com/risk/asset-risk/methodology (opens in a new tab). In the next version, we are going to use a specially designed curve - see the paper (opens in a new tab).
LinearInterestRateModel implements IInterestRateModel
Getters
calcBorrowRate
Calculates borrow rate
function calcBorrowRate(uint256 totalLiquidity,
uint256 availableLiquidity)
external
view
returns (uint256)
getModelParameters
Gets interest rate model parameters
function getModelParameters()
external
view
returns (
uint256 U_optimal,
uint256 R_base,
uint256 R_slope1,
uint256 R_slope2
)