Exchange Rate
Each bToken is convertible into an ever increasing quantity of the underlying asset, as interest accrues in the market. The exchange rate between a bToken and the underlying asset is equal to:
BErc20 / CEther
RETURN
: The current exchange rate as an unsigned integer, scaled by 1e18.
Solidity
Web3 1.0
Tip: note the use of call vs. send to invoke the function from off-chain without incurring gas costs.
Last updated