RateModel

Git Source

Inherits: IRateModel

Author: Aloe Labs, Inc.

"Test everything; hold fast what is good." - 1 Thessalonians 5:21

State Variables

_A

uint256 private constant _A = 6.1010463348e20;

_B

uint256 private constant _B = _A / 1e18;

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) external pure returns (uint256);

Parameters

NameTypeDescription
utilizationuint256The lender's total borrows divided by total assets, scaled up by 1e18
<none>address

Returns

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