Supply Rate

At any point in time one may query the contract to get the current supply rate per block. The supply rate is derived from the Borrow Rate, Reserve Factor and the amount of Total Borrow.

FBep20 / FBnb

function supplyRatePerBlock() returns (uint)
  • RETURN: The current supply rate as an unsigned integer, scaled by 1e18

Solidity

FBep20 fToken = FToken(0x3FDA...);
uint supplyRateMantissa = fToken.supplyRatePerBlock();

Web3 1.0

const fToken = FBnb.at(0x3FDB...);
const supplyRate = (await fToken.methods.supplyRatePerBlock().call()) / 1e18;

Last updated