Closed code423n4 closed 2 years ago
0x0x0x
!= 0 is a cheaper operation compared to > 0, when dealing with uint.
!= 0
> 0
uint
./TwabRewards.sol:239: if (data.length > 0) { ./TwabRewards.sol:255: _promotionEndTimestamp > 0 && _promotionEndTimestamp >= block.timestamp, ./TwabRewards.sol:319: if (_averageTotalSupplies[0] > 0) {
Duplicate of https://github.com/code-423n4/2021-12-pooltogether-findings/issues/33
Handle
0x0x0x
Vulnerability details
Impact
!= 0
is a cheaper operation compared to> 0
, when dealing withuint
.Occurrences