JumpRateModelV2
Last updated
Supports only for V2 vTokens
Calculates the current borrow rate per block
function getBorrowRate(uint256 cash, uint256 borrows, uint256 reserves, uint256 badDebt) external view returns (uint256)Parameters
cash
uint256
The amount of cash in the market
borrows
uint256
The amount of borrows in the market
reserves
uint256
The amount of reserves in the market
badDebt
uint256
The amount of badDebt in the market
Return Values
[0]
uint256
The borrow rate percentage per block as a mantissa (scaled by 1e18)
Last updated

