Onyx Protocol
Comment on page

Total Reserves

Reserves are an accounting entry in each oToken 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.
OErc20 / OEther
function totalReserves() returns (uint)
  • RETURN: The total amount of reserves held in the market.
OErc20 oToken = OToken(0x3FDA...);
uint reserves = oToken.totalReserves();
Web3 1.0
const oToken = OEther.at(0x3FDB...);
const reserves = (await oToken.methods.totalReserves().call());