Comment on page
totalSupplyis the number of tokens currently in circulation in this qToken market. It is part of the EIP-20 interface of the qToken contract.
function totalSupply() external view returns (uint);
- RETURN: The total number of tokens in circulation for the market.
QToken qToken = QToken(<qTokenAddress>);
uint amount = qToken.totalSupply();
const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
const amount = await qToken.totalSupply();