TripleSlopeRateModel

Methods

baseBorrowPerSecond

function baseBorrowPerSecond() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

borrowPerSecond1

function borrowPerSecond1() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

borrowPerSecond2

function borrowPerSecond2() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

borrowPerSecond3

function borrowPerSecond3() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

getBorrowRate

function getBorrowRate(uint256 cash, uint256 borrow) external view returns (uint256)

Get the borrow rate per second.

Parameters

Name
Type
Description

cash

uint256

The cash in the market

borrow

uint256

The borrow in the market

Returns

Name
Type
Description

_0

uint256

The borrow rate per second

getSupplyRate

function getSupplyRate(uint256 cash, uint256 borrow) external view returns (uint256)

Get the supply rate per second.

Parameters

Name
Type
Description

cash

uint256

The cash in the market

borrow

uint256

The borrow in the market

Returns

Name
Type
Description

_0

uint256

The supply rate per second

getUtilization

function getUtilization(uint256 cash, uint256 borrow) external pure returns (uint256)

Calculate the utilization rate.

Parameters

Name
Type
Description

cash

uint256

The cash in the market

borrow

uint256

The borrow in the market

Returns

Name
Type
Description

_0

uint256

The utilization rate

kink1

function kink1() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

kink2

function kink2() external view returns (uint256)

Returns

Name
Type
Description

_0

uint256

undefined

Last updated