When a user repays a loan their debtTokens are burned accordingly by the burn function below
There is an update to the balanceIncrease if the user is not a new user.
This completes by setting amount to amount, this should not be the case as amount should also contain the balanceIncrease so that the burned tokens includes the additional interest from the user that should be burned
Loss of funds
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.