The DebtToken.balanceOf() function doesn't return the exact debt amount of the user, as it fails to account for the increased debt balance generated by the usage index delta between the global usage index and the user's index.
The DebtToken.balanceOf() function doesn't account for the increased balance generated by the usage index update.
Over time, the global usage index increases. In the DebtToken logic, for every update for users, the users' indices are updated by the global usage index, and the users' debt balance is increased by the index delta between the global index and the users' index. This can be observed in the functions mint() and burn().
However, the balanceOf() function does not account for this increased balance, resulting in an incorrect return value.
balanceOf() returns an incorrect value that does not reflect the increased balance by the index delta.
Manual review
Account for the increased balance by the index delta.
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.