15,000 USDC
View results
Submission Details
Severity: low

Add check to burnDsc to unsure user isn't burning his Dsc by mistake

Summary

Add a check to prevent Dsc over a certain healthFactor.

Vulnerability Details

As said in the comment, the user can use this function to burn his Dsc. A check should be added to prevent Dsc burning over a certain health threshold -> users should be allowed to burn their Dsc only if they approach the liquidation threshold.

Impact

A user may mistakenly burn his Dsc when he is in no danger of liquidation.

Tools Used

Manual review

Recommendations

Add a healthFactor requirement. If over a certain healthFactor, a user cannot burn his Dsc.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.