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

No checks for available slots causing the user to waste gas to register and cancelRegistration

Summary

No checks for available slots causing the user to waste gas to register and cancelRegistration

Vulnerability Details

In the ThePredicter::register function does not check for available slot, therefore causing the user to register without being able to be approved as a player and overall wasting gas to register and cancelRegistration

Impact

Users would waste gas to register and cancelRegistration because they would never be accepted into the game due insufficient slots available for the game

Tools Used

Manual Reviews

Recommendations

The ThePredicter::register function should include a check for available slot
The code below helps mitigate the risk

+ if (players.length >= 30) {
+ revert ThePredicter__AllPlacesAreTaken();
+ }
Updates

Lead Judging Commences

NightHawK Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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