The startGame
function requires users to send at least 1 ether to initiate a game. However, it does not handle any excess ether sent beyond this requirement, leading to potential loss of funds for users who send more than 1 ether.
In the startGame
function, users are required to send a minimum of 1 ether to start a game. The function checks if the sent ether is at least 1 ether but does not account for any excess ether sent.
If a user sends more than 1 ether, the excess ETH is effectively lost.
Manual Review.
Modify the require statement in the startGame
function to ensure that users can only send exactly 1 ether. This avoids any potential loss of funds due to overpayment.
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.