51707 sc insight gas inefficiency due to redundant validatevalidatorexists modifier in requestcommissionclaim
Description
Vulnerability Details
function requestCommissionClaim(
uint16 validatorId,
address token
)
external
onlyValidatorAdmin(validatorId) // First validation
nonReentrant
_validateValidatorExists(validatorId) // Redundant validation
_validateIsToken(token)
{
// Function implementation
}Impact Details
References
Proof of Concept
Previous49726 sc insight there is a redundant zero address check in the validatorfacet sol that is obsolete and could never be trueNext51283 sc critical permanent freeze of user token due to unhandled partial fill refunds for swap via 1inch in dexaggregatorwrapperwithpredicateproxy
Was this helpful?