code-423n4 / 2022-05-opensea-seaport-findings

1 stars 0 forks source link

Gas Optimizations #70

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

where necessary, do the following:

e.g. replace:

for (uint256 i = 0; i < n; i++) {
    ...
}

with:

uint256 i;
do {
    ...
    unchecked {
       ++i;
    }
} while (i < num);

in the following locations: