Description
The TwentyOne::call
function is missing a check to confirm it holds at least 2 ETH at the moment the player calls it.
Impact
If the contract holds less than 2 ETH and a player wins when calling the TwentyOne::call
function, the player will not receive their rewards.
Proof of Concepts
Contract TwentyOne
is deployed
Alice is the first person to call TwentyOne::startGame
Alice calls TwentyOne::call
and win
The contract holds 0 ETH and is not able to send Alice her reward
Recommended mitigation
Add a contract balance checker in the function
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.