Developers
Search…
Borrow Rate
At any point in time one may query the contract to get the current borrow rate per second.

QToken

1
function borrowRatePerSec() external view returns (uint);
Copied!
  • RETURN: The current borrow rate as an unsigned integer, scaled by 1e18.

Solidity

1
QToken qToken = QToken(<qTokenAddress>);
2
uint borrowRate = qToken.borrowRatePerSec();
Copied!

Ethers.js

1
const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
2
const borrowRate = await qToken.borrowRatePerSec();
Copied!
Last modified 2mo ago
Copy link