Open code423n4 opened 3 years ago
@cmichelio
StakingTokenProvider.nameForStakingToken: if (keccak256(abi.encode(_pairedPrefix)) == keccak256(abi.encode(address(0)))) can be simplified to if(bytes(_pairedPrefix).length== 0)
StakingTokenProvider.nameForStakingToken
if (keccak256(abi.encode(_pairedPrefix)) == keccak256(abi.encode(address(0))))
if(bytes(_pairedPrefix).length== 0)
Handle
@cmichelio
Vulnerability details
Vulnerability Details
StakingTokenProvider.nameForStakingToken
:if (keccak256(abi.encode(_pairedPrefix)) == keccak256(abi.encode(address(0))))
can be simplified toif(bytes(_pairedPrefix).length== 0)