Annex Docs
Search…
Annex Docs
Annex Docs
Annex Finance Documentation
Getting Started
ATokens
Mint
Redeem
Redeem Underlying
Borrow
Repay Borrow
Repay Borrow Behalf
Transfer
Liquidate Borrow
Key Events
Error Codes
Failure Info
Exchange Rate
Get Cash
Total Borrow
Borrow Balance
Borrow Rate
Total Supply
Underlying Balance
Supply Rate
Total Reserves
Reserve Factor
Comptroller
Governance
API
Annex.js
Auction
Security
Pools
Powered By
GitBook
Borrow Rate
At any point in time one may query the contract to get the current borrow rate per block.
SErc20 / SEther
1
function borrowRatePerBlock() returns (uint)
Copied!
RETURN
: The current borrow rate as an unsigned integer, scaled by 1e18.
Solidity
1
SErc20 aToken = SToken(0x3FDA...);
2
uint borrowRateMantissa = aToken.borrowRatePerBlock();
Copied!
Web3 1.0
1
const
aToken
=
SEther
.
at
(
0x3FDB
...
);
2
const
borrowRate
=
(
await
aToken
.
methods
.
borrowRatePerBlock
().
call
())
/
1e18
;
Copied!
Previous
Borrow Balance
Next
Total Supply
Last modified
10mo ago
Copy link