Borrow Rate
At any point in time one may query the contract to get the current borrow rate per second.
function borrowRatePerSec() external view returns (uint);
- RETURN: The current borrow rate as an unsigned integer, scaled by 1e18.
QToken qToken = QToken(<qTokenAddress>);
uint borrowRate = qToken.borrowRatePerSec();
const qToken = await ethers.getContractAt(<qTokenABI>, <qTokenAddress>);
const borrowRate = await qToken.borrowRatePerSec();
Last modified 1yr ago