Closed code423n4 closed 3 years ago
pauliax
No need for the first check against 0 here as block.timestamp can never be < 0 later: require(scheduled[hashTx] != 0 && block.timestamp < scheduled[hashTx], 'TOO_LATE');
require(block.timestamp < scheduled[hashTx], 'TOO_LATE');
No, this check was made because 0 is a santinel value that means "it's not set"
As shown by the declaration in line 11
0 is meant to signify unset
unset
Invalid finding
Handle
pauliax
Vulnerability details
Impact
No need for the first check against 0 here as block.timestamp can never be < 0 later: require(scheduled[hashTx] != 0 && block.timestamp < scheduled[hashTx], 'TOO_LATE');
Recommended Mitigation Steps
require(block.timestamp < scheduled[hashTx], 'TOO_LATE');