Users can burn in advance to avoid being liquidated
As we can see ,the liquidate
function will call _burnDsc
to burn user's coin. If user infront run the burnDsc
to burnDsc, It will cause liquidate
error and revert.
resulting in the user being unable to be liquidated
vs code
I think it's a design issue. We can check the remaining amount of the user's DecentralizedStableCoin
, and cancel the burn in the liquidation function when the remaining amount is wrong
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.