The constructor of the ThePredicter smart contract does not validate that entranceFee and predictionFee are non-zero, which could result in unintended contract behavior or abuse.
The ThePredicter smart contract allows the organizer to set the entranceFee and predictionFee during deployment. However, the constructor does not include checks to ensure these values are greater than zero. This oversight can lead to potential issues such as:
Zero Fee Exploits: Allowing zero fees may enable users to participate in predictions or enter the system without any financial commitment, which could lead to spam or abuse of the system.
Economic Instability: The economic model of the contract relies on these fees to function correctly. Zero fees could disrupt the intended economic incentives, leading to unintended behavior or financial losses.
Prize Pool Distortion:
Null entrance fees directly affect the total prize amount available, resulting in no rewards for winners.
This could make the game significantly less attractive to potential players, as there are no rewards.
The absence of a prize pool eliminates the primary incentive for participation in the prediction game.
Unfairness:
Players are paying fees but getting nothing in return, even if they win.
This creates a fundamentally unfair system where participants bear costs without the possibility of rewards.
Players may find it difficult to assess the risk-reward ratio of participating, as there is only risk and no potential reward. This imbalance is likely to lead to reduced engagement and potentially a complete loss of player base.
Operational Sustainability:
This threatens the basic operational viability of the game, as there are no resources to cover essential costs.
The inability to fund the physical space for the game could lead to its cancellation or suspension.
Manual review.
Add zero checks to the entered fees by making the following changes to ThePredicter
contract:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.