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

0 stars 0 forks source link

Unnecessary check for _promotionEndTimestamp #76

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

0xabc

Vulnerability details

Impact

L255 Given block.timestamp always >0, if _promotionEndTimestamp >= block.timestamp then _promotionEndTimestamp >0 is a must. We can simplify L255 to "_promotionEndTimestamp >= block.timestamp,"

PierrickGT commented 2 years ago

Duplicate of https://github.com/code-423n4/2021-12-pooltogether-findings/issues/19