The stakingPeriods() is called on _sherlockPosition to validate that PERIOD is active. Hence, checking that _sherlockPosition is non-zero is redundant.
Recommended Mitigation Steps
Remove the check if (address(_sherlockPosition) == address(0)) revert ZeroArgument();
Handle
GreyArt
Vulnerability details
Impact
The
stakingPeriods()
is called on_sherlockPosition
to validate thatPERIOD
is active. Hence, checking that_sherlockPosition
is non-zero is redundant.Recommended Mitigation Steps
Remove the check
if (address(_sherlockPosition) == address(0)) revert ZeroArgument();