code-423n4 / 2022-02-pooltogether-findings

0 stars 0 forks source link

Gas Optimizations #37

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago
  1. Change the incremental logic from i++ to ++i in order to save some opcodes:

  2. Don't compare a boolean value with true, it will use more opcodes.

PierrickGT commented 2 years ago

Duplicate of https://github.com/code-423n4/2022-02-pooltogether-findings/issues/15