DSC Mint will either return true or revert, thus checking minted
status in mintDcs
is unnecessary
Whe minting DSC via DSCEngine, there is a check status if it's minted
or not. If it's return false, then it will revert with DSCEngine__MintFailed
.
But if we check on DecentralizedStableCoin
contract, the mint
function will either return true or revert. So the previous check on mintDsc
is useless.
Will save a bit of deployment gas, and cleanup unreachable code
Manual analysis
Remove the minted
check, to revert when mint failed
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.