Ether can be locked in contract if dealers got high hand; as there is no requirement in the func. endGame
to transfer ether to dealer.
As we see the func. call
logic,
now focus on endGame
func. logic:
If the player won the game 2ether will be transfer to the player, but incase if the player lose the game the ether will be stuck in the contract, as there is no (require option) of transferring the funds to the dealer.
Also there is no withdraw function so the dealer can get the funds.
Loss of Funds
Manual Review
add constructor to the contract and set owner:
add onlyOwner
modifier:
lastly add a withdrawal function, such as:
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.