F-2024-0014·gas-bound
Supported Tokens should be limited to 5 or 6 tops to avoid high gas consumption
TL;DR
The raffle places no cap on supported tokens; as the list grows, the weekly draw's gas cost climbs and risks becoming prohibitively expensive.
Severity
LOW
Impact
LOW
Likelihood
LOW
Method
MManual review
CAT.
Complexity
LOW
Exploitability
LOW
02Section · Description
Description
The current implementation of the raffle system does not limit the number of supported tokens. This could lead to high gas consumption during the weekly draw, potentially making the system inefficient or unusable as more tokens are added over time.
03Section · Impact
Impact
As the number of supported tokens grows, gas costs for operations like the weekly draw could become prohibitively expensive.
04Section · Recommendation
Recommendation
Implement a hard cap on the number of supported tokens (suggested 5-6 tokens maximum).

