Fortress
Search…
Borrow Rate
At any point in time one may query the contract to get the current borrow rate per block.

FBep20 / FBnb

1
function borrowRatePerBlock() returns (uint)
Copied!
  • RETURN: The current borrow rate as an unsigned integer, scaled by 1e18.

Solidity

1
FBep20 fToken = FToken(0x3FDA...);
2
uint borrowRateMantissa = fToken.borrowRatePerBlock();
Copied!

Web3 1.0

1
const fToken = FBnb.at(0x3FDB...);
2
const borrowRate = (await fToken.methods.borrowRatePerBlock().call()) / 1e18;
Copied!
Last modified 9mo ago