Closed code423n4 closed 2 years ago
Fitraldys
in line https://github.com/code-423n4/2022-01-sherlock/blob/main/contracts/SherClaim.sol#L79 is cheaper to use !active() than using active() == false.
https://github.com/code-423n4/2022-01-sherlock/blob/main/contracts/SherClaim.sol#L79
Dup #132
Handle
Fitraldys
Vulnerability details
Impact
in line https://github.com/code-423n4/2022-01-sherlock/blob/main/contracts/SherClaim.sol#L79 is cheaper to use !active() than using active() == false.
Proof of Concept
https://github.com/code-423n4/2022-01-sherlock/blob/main/contracts/SherClaim.sol#L79