Interest accruals don't happen in DebtToken::burn
From the code bellow it is clearly seen that we don't increase the user balance by balanceIncrease. This means that the newly generated interest will not be added to his account, meaning that he won't be charged as much.
Burning does not add interest, aka. balanceIncrease, which would decrease yield and total.
Borrowers don't pay the yield if they borrow and then repay, no matter the time difference between the 2.
Manual review.
Add balanceIncrease to the user balance to apply the newly accrued interest.
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.