Get Cash

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

QToken

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

Solidity

QToken qToken = QToken(<qTokenAddress>);
uint cash = qToken.getCash();

Ethers.js

const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
const cash = await qToken.getCash();

Last updated