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

Double checks

There are four checks in DecentralizedStableCoin contract which already exists in another parts of the project.
These two checks are already in the inherited ERC20Burnable contract:

51: if (balance < _amount) {
58: if (_to == address(0)) {

These two checks are already in the moreThanZero modifier of the DSCEngine contract:

48: if (_amount <= 0) {
61: if (_amount <= 0) {

Support

FAQs

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