startGame has a require statement that demands that the value sent be more than or equal to 1 ether. This means that a player is allowed to send more than one ether which should not be the case, this could cause players to lose any extra value they send when starting a game.
A player accidentally sends 10 ether to start a game.
The player cannot get their ether back.
If the player is lucky, they may win the game and get only 2 ether back.
Proof of Code:
Place the below code into TwentyOneTest in TwentyOne.t.sol
Players who accidentally send more than one ether when starting a game would lose all the extra value.
Foundry suite
Consider making the require conditions more exact to equal one ether.
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.