Total Supply

totalSupply is the number of tokens currently in circulation in this qToken market. It is part of the EIP-20 interface of the qToken contract.

QToken

function totalSupply() external view returns (uint);
  • RETURN: The total number of tokens in circulation for the market.

Solidity

QToken qToken = QToken(<qTokenAddress>);
uint amount = qToken.totalSupply();

Ethers.js

const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
const amount = await qToken.totalSupply();

Last updated