In RockPaperScissor::_finishGame
, the winner receives two newly minted tokens rather than receiving the tokens bet by the players.
This creates an inflation problem and does not properly transfer the ownership of the wagered WinningToken
.
Manual code review
Instead of minting new tokens, transfer the wagered tokens from the protocol to the winner.
Mints new tokens upon game completion or cancellation for token-based games
Mints new tokens upon game completion or cancellation for token-based games
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.