The _usageIndex
variable in DebtToken
has been deprecated, resulting in the getUsageIndex()
function returning an incorrect value.
Originally, _usageIndex
was used to represent cumulative interest accumulation. However, in the current implementation, updateUsageIndex()
is no longer used to update this value, and _usageIndex
is no longer factored into interest calculations.
Since _usageIndex
is no longer updated, calling getUsageIndex()
returns an outdated and incorrect value:
Because _usageIndex
is no longer maintained, any function or contract relying on getUsageIndex()
will receive an inaccurate value, potentially leading to incorrect interest calculations or misrepresentation of debt metrics.
Manual Review
Modify the function to retrieve the correct interest index from the lending pool instead of returning the outdated _usageIndex
:
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.