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

Use `!= 0` instead of `> 0` for unsigned integer comparison

Summary

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

Tools Used

Manual review

Recommendations

Use != 0 for comparison with zero.

if (buyerAward != 0) {
if (i_arbiterFee != 0) {
if (tokenBalance != 0) {

Support

FAQs

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