Pools
Interest rate model

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 (uint16 U_1, uint16 U_2, uint16 R_base, uint16 R_slope1, uint16 R_slope2, uint16 R_slope3);