code-423n4 / 2022-08-foundation-findings

0 stars 0 forks source link

Gas Optimizations #282

Open code423n4 opened 1 year ago

code423n4 commented 1 year ago

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

HardlyDifficult commented 1 year ago

Don't initialize variables with default values.

Invalid. This optimization technique is no longer applicable with the current version of Solidity.

Use of ++i/i++ should be unchecked{++i}/unchecked{i++}in for-loops

Agree and will fix. But this file was out of scope.

If you use bit shifting will save some gas

Both examples were out of scope.