Open code423n4 opened 2 years ago
My personal judgments:
return
seems to do the same thing as break
in this scenario. Valid and small optimization.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.
https://github.com/code-423n4/2022-02-nested/blob/main/contracts/FeeSplitter.sol (#L191, #L149, #L166)
https://github.com/code-423n4/2022-02-nested/blob/main/contracts/NestedRecords.sol#L76
https://github.com/code-423n4/2022-02-nested/blob/main/contracts/NestedFactory.sol#L317
https://github.com/code-423n4/2022-02-nested/blob/main/contracts/NestedFactory.sol#L445