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

High gas for entering the raffle

Summary

Users waste too much gas when entering the raffle.

Vulnerability Details

Users spend a lot of gas first by mutating the storage, then by checking if any address in storage array is duplicate.

Impact

Gas/info

Tools Used

Manual inspection

Recommendations

First check for duplicates in the parameter array and just then update the storage variable. No need to always work upon the storage variable.

Updates

Lead Judging Commences

Hamiltonite Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Gas optimizations

Support

FAQs

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