The constructor of the ThePredicter
contract initializes the entrance and prediction fees without any validation checks. This lack of verification can result in unintended consequences if invalid or zero values are provided during contract deployment.
The constructor function accepts and sets the entranceFee
and predictionFee
values directly from the input parameters, but it does not validate these values. If zero or invalid fees are set, the contract's functionality could be compromised. For instance, setting fees to zero might prevent the system from functioning as intended, as no actual fees would be collected for participation or predictions.
ThePredicter.sol
contract
Manual Review
Setting the fees to zero or invalid values could disrupt the intended operations of the contract, such as collecting entrance or prediction fees and affect also the fairness and functionality of the betting system, potentially leading to financial losses or exploitation.
Consider implementing a validation checks in the constructor to ensure that both the entrance and prediction fees are greater than zero. This prevents the contract from being deployed with invalid fee values.
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.