TripleSlopeRateModel
Methods
baseBorrowPerSecond
Returns
Name
Type
Description
_0
uint256
undefined
borrowPerSecond1
Returns
Name
Type
Description
_0
uint256
undefined
borrowPerSecond2
Returns
Name
Type
Description
_0
uint256
undefined
borrowPerSecond3
Returns
Name
Type
Description
_0
uint256
undefined
getBorrowRate
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
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
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
Returns
Name
Type
Description
_0
uint256
undefined
kink2
Returns
Name
Type
Description
_0
uint256
undefined
Last updated