Developers
Search…
Total Reserve
Reserves are an accounting entry in each qToken contract that represents a portion of historical interest set aside as cash which can be withdrawn or transferred through the protocol's governance. A small portion of borrower interest accrues into the protocol, determined by the reserve factor.

QToken

1
function totalReserve() external view returns (uint);
Copied!
  • RETURN: The total amount of reserves held in the market.

Solidity

1
QToken qToken = QToken(<qTokenAddress>);
2
uint reserve = qToken.totalReserve();
Copied!

Ethers.js

1
const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
2
const reserve = await qToken.totalReserve();
Copied!
Last modified 2mo ago
Copy link