Skip to main content

ZeroInterestRateModel

Functions

getBorrowRate

function getBorrowRate(
uint256 ,
uint256 ,
uint256
) external returns (uint256)

Calculates the current borrow interest rate per block

Parameters

NameTypeDescription
``uint256
``uint256
``uint256

Return Values

NameTypeDescription
[0]uint256The borrow rate per block (as a percentage, and scaled by 1e18)

getSupplyRate

function getSupplyRate(
uint256 ,
uint256 ,
uint256 ,
uint256
) external returns (uint256)

Calculates the current supply interest rate per block

Parameters

NameTypeDescription
``uint256
``uint256
``uint256
``uint256

Return Values

NameTypeDescription
[0]uint256The supply rate per block (as a percentage, and scaled by 1e18)