For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Cash

Cash is the amount of underlying balance owned by this bToken contract. One may query the total amount of cash currently available to this market.

BErc20 / CEther

function getCash() returns (uint)
  • RETURN: The quantity of underlying asset owned by the contract.

Solidity

BErc20 bToken = BToken(0x3FDA...);
uint cash = bToken.getCash();

Web3 1.0

const bToken = CEther.at(0x3FDB...);
const cash = (await bToken.methods.getCash().call());

Last updated