The smart contract may not have a sufficient balance to cover the prizes when certain conditions are met.
The contract's starting balance is 0 ETH.
If the first user deposits 1** ETH** to play the game and wins, the contract should transfer 2 ETH to the user, which exceeds the contract's balance.
This issue can persist at various points during the contract's lifetime whenever the prize exceeds the available balance.
This vulnerability could prevent the user from getting their prizes, undermining the entire game's mechanics and potentially causing dissatisfaction among users.
Manual Inspection
Foundry
Fund the contract with sufficient ETH to cover the initial prizes if won.
If funding the contract is not viable, create a state variable that will hold the prizes by user and implement the pull logic for the user to claim their prize when there's enough ETH in the 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.