For state variable arithmetic assignments, using syntax like x = x + y
rather than x += y
and x = x - y
rather than x -= y
will save 113 gas.
There are 3 instances of this issue.
File Link | Instance Count | Instance Links |
---|---|---|
Staking.sol | 3 | 41,48,89 |
339 gas
baudit: a custom static code analysis tool; manual review
For state variables, use x = x + y
rather than x += y
.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.