Docs
Search…
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.

DErc20 / DEther

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

Solidity

1
DErc20 dToken = dToken(0x3FDA...);
2
uint borrows = dToken.totalBorrowsCurrent();
Copied!

Web3 1.0

1
const dToken = DEther.at(0x3FDB...);
2
const borrows = (await dToken.methods.totalBorrowsCurrent().call());
Copied!