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

uint comparison with zero can be cheaper

Summary

uint comparison with zero can be cheaper

Vulnerability Details

Checking for != 0 is cheaper than > 0 for unsigned integers.

Impact

Cost more gas to execute.

Tools Used

manually

Recommendations

Consider using != 0 instead of > 0

Support

FAQs

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