Closed code423n4 closed 2 years ago
gzeon
https://github.com/pooltogether/v4-periphery/blob/b520faea26bcf60371012f6cb246aa149abd3c7d/contracts/TwabRewards.sol#L255
require( _promotionEndTimestamp > 0 && _promotionEndTimestamp >= block.timestamp, "TwabRewards/promotion-not-active" );
block.timestamp always > 0 if _promotionEndTimestamp >= block.timestamp we also have _promotionEndTimestamp > 0
Duplicate of https://github.com/code-423n4/2021-12-pooltogether-findings/issues/19
Handle
gzeon
Vulnerability details
Impact
https://github.com/pooltogether/v4-periphery/blob/b520faea26bcf60371012f6cb246aa149abd3c7d/contracts/TwabRewards.sol#L255
block.timestamp always > 0 if _promotionEndTimestamp >= block.timestamp we also have _promotionEndTimestamp > 0