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

L-2: Constructor _raffleDuration might consider adding limitations on the value

Summary

LOW-2: The constructor variable _raffleDuration might consider being limited with the lowest/highest value to avoid excessively long/short durations of the raffles.

Vulnerability Details

Currently, the _raffleDuration is defined as a uint256 value that may contain very high values. To avoid raffles taking an unbearably long time, it may be considered to create limits on the minimum and maximum duration.

Impact

This issue may impact user satisfaction/experience with the contract.

Tools Used

Static analysis

Recommendations

Recommend adding require statements requiring the _raffleDuration variable to be within reasonable values (i.e. 1 minute and 7 days).

Updates

Lead Judging Commences

Hamiltonite Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Admin Input/call validation

Support

FAQs

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