IRateModel

Git Source

Functions

getYieldPerSecond

Specifies the percentage yield per second for a lender. Need not be a pure function of utilization. To convert to APY: (1 + returnValue / 1e12) ** secondsPerYear - 1

function getYieldPerSecond(uint256 utilization, address lender) external view returns (uint256);

Parameters

NameTypeDescription
utilizationuint256The lender's total borrows divided by total assets, scaled up by 1e18
lenderaddressThe Lender to examine

Returns

NameTypeDescription
<none>uint256The percentage yield per second, scaled up by 1e12