During a Token game, WinningToken
token bets are transferred from players to the RockPaperScissors
contract. However, during win/tie/cancel conditions, RockPaperScissors
contract mints new WinningToken
s to the players instead of transferring them to the player. This results in an artificially inflated totalSupply
of WinningToken
s.
RockPaperScissors::_finishGame#L498
RockPaperScissors::_handleTie#L535-536
RockPaperScissors::_cancelGame#L566&569
Impact: Low, the inflated WinningToken
s are locked in the RockPaperScissors
contract and are not circulating, it is just that totalSupply
is artificially inflated
Likelihood: High, this happens in all win/tie/cancel conditions
Severity: Low
Manual review
Use transfer
instead of mint
RockPaperScissors::_finishGame#L498
RockPaperScissors::_handleTie#L535-536
RockPaperScissors::_cancelGame#L566&569
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.