_usageIndex will remain 1e27 in the DebtToken contract even when the value changes in the LendingPool reserve.
The _usageIndex variable is designed for tracking the latest value of the reserve pool usage index. There is only one privileged function in the contract to update this variable. This is the updateUsageIndex with the onlyReservePool modifier. On thorough observation of the Lending Pool to detect when these updates will be made, there is no function that can be triggered on the pool to make the reservePool update the value.
_usageIndex will be inconsistent with returning value from the reserve pool.
Manual review.
Design the _usageIndex in DebtToken to fetch accurate usageIndex from reserve pool.
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.