Second player to call revealMove
ends up paying for the gas to calculate the winner.
revealMove
calls _determineWinner
if both moves were revealed. This means that the second player to call revealMove
will pay for more gas.
This might disincentivize users to call this method and potentially causing the game to timeout.
Manual review
Something like CCIP automatization could be implemented to keep which games have been revealed by both users. In that case the winner can be determined already. This could be done for multiple games at the same time.
Another option could be to incentivize users to determine the winner by giving them small rewards at the end of the game.
Code suggestions or observations that do not pose a direct security risk.
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.