The DebtToken.balanceOf() function unnecessarily multiplies the usage index, resulting in inflated balances.
The DebtToken.balanceOf() function incorrectly multiplies the usage index of the LendingPool with super.balanceOf(account). It should simply return super.balanceOf(account).
When minting, the mint amount represents the actual debt amount in the units of the underlying reserve token. Therefore, super.balanceOf(account) accurately reflects the actual debt amount in those units, making the usage index unnecessary.
As a result, balanceOf() returns an incorrect value that is unreasonably greater than it should be.
balanceOf() returns an incorrect value that is unreasonably greater than it should be.
Manual review
Do not multiply by the usage index.
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.