The call to the DebtToken updateUsageIndex function is not implemented within the Lending pool contract, which makes this function unreachable and causes the _usageIndex value to remain at the initial value. This mainly affects the external function DebtToken::getUsageIndex, as it will always return an outdated value.
In the DebtToken contract, updateUsageIndex function uses the onlyReservePool modifier. The reserve pool is assigned to the Lending pool contract as it is allowed to mint/burn debt tokens. However, call to the DebtToken::updateUsageIndex function is not implemented within the Lending pool contract, turning this functionality unreachable and causing the _usageIndex value to remain at its initial value.
Impact: Low
This issue mainly affects users who want to know the _usageIndex value by calling the getUsageIndex function, as they will get the default value 1e27 (WadRayMath.RAY).
Likelihood: Medium
Manual Review
It is recommended to implement the call to the DebtToken::updateUsageIndex function in the Lending Pool contract or remove the related features in the DebtToken contract.
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.