Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low

Redundant conditions are better to be used as modifier

Summary

Redundant conditions are better to be used as modifier

Vulnerability Details

Conditions/checks that are used more than once can be used as modifier.

Impact

Redundant conditions can be used as modifier for better access control.

Tools Used

Manual code review

Recommendations

Consider using a modifier to implement access control instead of inlining the condition/requirement in the function’s body.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!