The usageIndex
represents the cumulative interest rate accrual for debt. It can be updated calling the DebtToken::updateUsageIndex
function. But this functions is restricted to be called only by the LendingPool
contract (reserve pool) through the onlyReservePool
modifier. However, the LendingPool
contract lacks a public function to call DebtToken::updateUsageIndex
, making it impossible to update the usageIndex
. While the usage index is updated through ReserveLibrary.updateReserveState(), there's no direct way to modify it when needed.
The LendingPool
cannot adjust the usage index if necessary.
Manual review
Add an external function in the LendingPool
contract to allow authorized updates to the usage index.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.