Docs
Search…
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 borrows.

DErc20 / DEther

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

Solidity

1
DErc20 dToken = dToken(0x3FDA...);
2
uint supplyRateMantissa = dToken.supplyRatePerBlock();
Copied!

Web3 1.0

1
const dToken = DEther.at(0x3FDB...);
2
const supplyRate = (await dToken.methods.supplyRatePerBlock().call()) / 1e18;
Copied!