The following findings are gas optimizations and have an informative impact. They are grouped this way because the same recommendation applies to all cases. Using .length
in a loop is less efficient than using a constant, because otherwise, the code reads the array length each time it loops. It's better to store the length in memory:
Pot::constructor in initialization loop:
Pot::closePot
Optimization for Pot::constructor:
Optimization for Pot::closePot:
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.