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.


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


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


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

Last updated