Total Borrow

Total Borrows is the amount of underlying currently loaned out by the market, and the amount upon which interest is accumulated to suppliers of the market.

OErc20 / OEther

function totalBorrowsCurrent() returns (uint)
  • RETURN: The total amount of borrowed underlying, with interest.

Solidity

OErc20 oToken = OToken(0x3FDA...);
uint borrows = oToken.totalBorrowsCurrent();

Web3 1.0

const oToken = OEther.at(0x3FDB...);
const borrows = (await oToken.methods.totalBorrowsCurrent().call());

Last updated