code-423n4 / 2021-12-vader-findings

0 stars 0 forks source link

Avoid repeated calculations #187

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

2**32 can be pre-calculated and stored in a constant to reduce gas costs:

  uint32 blockTimestamp = uint32(block.timestamp % 2**32);