Open code423n4 opened 2 years ago
pants
This require statement is unnecessary since the function transferOwnership(), that was inherited from Ownable, requires the same thing:
transferOwnership()
Ownable
require(owner_ != address(0), "Swap::constructor: Owner must not be 0");
This require statement increase gas usage for no reason.
Manual code review.
Remove this require statement.
Will likely be nuking this entirely due to #78 .
Handle
pants
Vulnerability details
This require statement is unnecessary since the function
transferOwnership()
, that was inherited fromOwnable
, requires the same thing:Impact
This require statement increase gas usage for no reason.
Tool Used
Manual code review.
Recommended Mitigation Steps
Remove this require statement.