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

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

Summary

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

Vulnerability Details

Impact

Tools Used

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.