In the game we can only bet 1 eth to receive 2 eth, but in the code we can deposit 1 eth or higher (so up to infinity). Even if it's intentionnal, it doesn't matter how much we bet, we're still gonna only receive 2 eth
on the startGame fonction, we only controle that the ether sent by the player are equal or higher then one, but the code then, if he win, only send him 2 eth.
There is 4 choice.
1 make the eth sent variable (which would be contrary to what we want to do)
2 send back the ETH that are in surplus
3 only stat the game if the player send 1 eth
4 let the player deposit has much as he want (like we actually do) and let him loose the surplus
either modify the require part or modify the end game fonction to give a variable number (if we decide to send more)
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.