Currently, the balanceIncrease
variable is not accounted for, unlike in the DToken::mint
function.
The reserve.ussageIndex
is updating during time, and the balanceIncrease
variable represents the additional amount that should be minted for the user due to the changes in reserve.ussageIndex
. However, the DebtToken::burn
function does not take this into account.
Incorrect calculations.
Manual review.
add following lines in DebtToken::burn
function:
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.