Borrow Balance

A user who borrows assets from the protocol is subject to accumulated interest based on the current borrow rate. Interest is accumulated every second and integrations may use this function to obtain the current value of a user's borrow balance with interest.


function borrowBalanceOf(address account) external view returns (uint);
  • account: The account which borrowed the assets.

  • RETURN: The user's current borrow balance (with interest) in units of the underlying asset.


QToken qToken = QToken(<qTokenAddress>);
uint accountBorrow = qToken.borrowBalanceOf(<accountAddress>);


const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
const accountBorrow = await qToken.borrowBalanceOf(<accountAddress>);

Last updated