Open code423n4 opened 2 years ago
My personal judgements:
Now, here is the methodology I used for calculating a score for each gas report. I first assigned each submission to be either small-optimization (1 point), medium-optimization (5 points) or large-optimization (10 points), depending on how useful the optimization is. The score of a gas report is the sum of these points, divided by the maximum number of points achieved by a gas report. This maximum number was 10 points, achieved by #67.
The number of points achieved by this report is 2 points. Thus the final score of this gas report is (2/10)*100 = 20.
GAS issues
Change the incremental logic from
i++
to++i
in order to save some opcodes:The following structs could be optimized moving the position of certains values in order to save slot storages:
Use delete instead of set to default value (
false
oraddress(0)
)destination
it's equal toaddress(0)
at OperatorResolver.sol#L63Change the logic in order to save one variable