Certain index update functions (updateUsageIndex, updateLiquidityIndex) exist in the RToken and DebtToken contracts, but there is no ReservePool code that actually calls these functions. As a result, the index values remain unchanged, potentially causing confusion for anyone relying on these values off-chain.
updateUsageIndex
and updateLiquidityIndex
can only be called by the ReservePool address, but the ReservePool contract does not include any function to update these indices. Although the RToken contract includes functions to read these values, they are never actually updated in practice.
In the current implementation, these index variables are not used in any calculation in the RToken or DebtToken contracts. They simply remain set to their default value.
Off-chain processes or UIs that rely on these index values can receive incorrect information.
Users may become confused if the displayed indices are never updated.
Manual Code Review and Foundry
Add functionality in the ReservePool contract to properly call updateUsageIndex and updateLiquidityIndex. Ensuring these values are updated will help prevent misinformation and confusion for anyone relying on the index data.
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.