In DebtToken contract in burn function there is inaccuracy on calculating burning amount of the tokens.
It was missed to add the interest value to amount.
In LendingPool contract sending wrong amount of burned tokens.
At first glance the self assignment of the variable is not correct. In DebtToken contract in burn() function at row 197:
It was missed to add the interest value to amount.
Receiving wrong amount of tokens at row 525 in LendingPool Contract
The problem will cause wrong calculating of the amount. The variable amountScaled at row 206 in DebtToken contract will be received without interest value.
It will be transfered wrong amount of tokens.
For the problem to fix that you should use:
Interest IS applied through the balanceOf() mechanism. The separate balanceIncrease calculation is redundant/wrong. Users pay full debt including interest via userBalance capping.
Interest IS applied through the balanceOf() mechanism. The separate balanceIncrease calculation is redundant/wrong. Users pay full debt including interest via userBalance capping.
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.