Borrow Rate
At any point in time one may query the contract to get the current borrow rate per block.
BErc20 / CEther
function borrowRatePerBlock() returns (uint)
RETURN
: The current borrow rate as an unsigned integer, scaled by 1e18.
Solidity
BErc20 bToken = BToken(0x3FDA...);
uint borrowRateMantissa = bToken.borrowRatePerBlock();
Web3 1.0
const bToken = CEther.at(0x3FDB...);
const borrowRate = (await bToken.methods.borrowRatePerBlock().call()) / 1e18;
Last updated