For the complete documentation index, see llms.txt. This page is also available as Markdown.

Borrow Rate

At any point in time one may query the contract to get the current borrow rate per second.

QToken

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

Solidity

QToken qToken = QToken(<qTokenAddress>);
uint borrowRate = qToken.borrowRatePerSec();

Ethers.js

const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
const borrowRate = await qToken.borrowRatePerSec();

Last updated

Was this helpful?