The goal of the endGame function is to conclude a game for a specified player and handle the game's aftermath, particularly if the player has won.
But there is some bug, because is using transferfunction to send ethers.
In the protocol, the transfer function is utilized to transfer funds to the winning address.
transfer() sends 2300 gas, which is enough for most simple operations. However, if the recipient is a contract with complex logic in its fallback function, the transfer could fail, potentially causing your contract to misbehave.
The transfer could fail, potentially causing your contract to misbehave. And also it can be use for the reetrancy attacks.
manual review
Insted of transferplease use call
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.