Inside the _burnDSC method, DSCEngine contract checks for success of transferFrom call and reverts if it is false:
However, if the transferFrom method will not succeed, it will revert. In other case it will always return true. Therefore this check is redundant and can be removed for gas optimization.
n/a
Unnecessary gas consumption
Manual review
Remove the success check
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.