The mint
method in DecentralizedStableCoin checks if the _to
address is zero address, and reverts with custom error if this condition is satisfied.
This check is already being performed in the _mint
method of ERC20 contract. The method can therefore be simplified for gas savings:
The custom error DecentralizedStableCoin__NotZeroAddress
can be removed.
n/a
Unnecessary gas consumption
Manual review
Please consider removing redundant lines of code as suggested in summary.
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.