code-423n4 / 2023-01-drips-findings

0 stars 2 forks source link

Gas Optimizations #81

Open code423n4 opened 1 year ago

code423n4 commented 1 year ago

See the markdown file with the details of this report here.

GalloDaSballo commented 1 year ago

G-01 Make for loop unchecked 644 13 Let's say 260 gas (13 * 20

G-02 Use an unchecked block when operands can't underflow/overflow 688 7 20 * 7 = 140

G-03 Write element of storage struct to memory when used more than once 10 1 100 gas

G-04 Call block.timestamp direclty instead of function 22 1 16

G-06 Transfer erc20 immediately to Dripshub 57824 1 5k

G-07 Transfer ERC20 immediately to the user 22112 1 5k

Rest is marginal

10k+

c4-judge commented 1 year ago

GalloDaSballo marked the issue as grade-a

GalloDaSballo commented 1 year ago

Best because the savings are high impact and tangible

c4-judge commented 1 year ago

GalloDaSballo marked the issue as selected for report