Fortress
Search…
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 block and integrations may use this function to obtain the current value of a user's borrow balance with interest.

FBep20 / FBnb

1
function borrowBalanceCurrent(address account) returns (uint)
Copied!
  • account: The account which borrowed the assets.
  • RETURN: The user's current borrow balance (with interest) in units of the underlying asset.

Solidity

1
FBep20 fToken = FToken(0x3FDA...);
2
uint borrows = fToken.borrowBalanceCurrent(msg.caller);
Copied!

Web3 1.0

1
const fToken = FBnb.at(0x3FDB...);
2
const borrows = await fToken.methods.borrowBalanceCurrent(account).call();
Copied!
Last modified 9mo ago