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.
BErc20 / CEther
function totalBorrowsCurrent() returns (uint)
RETURN
: The total amount of borrowed underlying, with interest.
Solidity
BErc20 bToken = BToken(0x3FDA...);
uint borrows = bToken.totalBorrowsCurrent();
Web3 1.0
const bToken = CEther.at(0x3FDB...);
const borrows = (await bToken.methods.totalBorrowsCurrent().call());
Last updated