15,000 USDC
View results
Submission Details
Severity: low
Valid

Redundant check in `DSCEngine::burnDsc`

Summary

File: src/DSCEngine.sol
212: function burnDsc(uint256 amount) public moreThanZero(amount) {
213: _burnDsc(amount, msg.sender, msg.sender);
214: _revertIfHealthFactorIsBroken(msg.sender); // I don't think this would ever hit...
215: }

_revertIfHealthFactorIsBroken(msg.sender) is redundant as burning DSC will never break the healthFactor

Support

FAQs

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