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

`<x> += <y>` costs more gas than `<x> = <x> + <y>` for state variables

Summary

+= or -= costs more gas than = + or = - for state variables

Impact

More Gas Consumption

Recommendations

Using the addition or subtraction operator instead of plus-equals or minus-equals saves gas

Support

FAQs

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