code-423n4 / 2023-08-dopex-findings

3 stars 3 forks source link

Gas Optimizations #2219

Closed code423n4 closed 10 months ago

code423n4 commented 1 year ago

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

c4-pre-sort commented 12 months ago

bytes032 marked the issue as sufficient quality report

GalloDaSballo commented 11 months ago

[G-01] Using calldata instead of memory for read-only arguments in external functions saves gas

R

[G-02] Use assembly to write address storage values

NC

[G-03] Using XOR (^) and AND (&) bitwise equivalents

NC

[G-04] Instead of counting down in for statements, count up

-3

[G-05] Use assembly to check for address(0)

I

[G-06] Cache state variables outside of loop to avoid writing storage on every iteration

L

1L 1R 2NC -3

c4-judge commented 10 months ago

GalloDaSballo marked the issue as grade-c