When a borrower repay his debt or borrow again tokens are minted without reason making the debt balance of the user making no sense.
when a user become a borrower his balance increase algorithmically since the usage index increase consistently.
When debt tokens are minted the amount of the debt is divided by the current usage index as we can see here :
A problem occur in the mint function since this function mint again the balance increase of the user which make no sense since the balance increase algorithically.
So debt token are minted without creation of any real debt breaking the purpose of the debt token.
Breaking the protocol calculation
Medusa
Don't mint the increase in the debt token.
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.