Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Redundant Status Check Leading to Gas Inefficiency

Summary

Redundant Status Check Leading to Inefficiency

Vulnerability Details

The current implementation redundantly checks if both checkedOnce and checkedTwice statuses are set to NICE or EXTRA_NICE. This redundancy is unnecessary as the checkedTwice function already performs this check.

Impact

This repeated checking results in gas inefficiency.

Tools Used

Foundry

Recommendations

Eliminate the check for the checkedOnce status. Retaining only the checkedTwice check is sufficient and more efficient.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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