The contract mints new WinningTokens instead of returning deposited tokens during game cancellations and completions, allowing infinite token inflation through repeated game creation and cancellation.
When players create/join token-based games:
They transfer tokens to the contract
When games end, the contract mints new tokens instead of transferring the original ones back
This allows unlimited token minting by repeating the process
A malicious actor can perform this process repeatedly to increase the token supply to an unlimited number thereby reducing the tokens value to other players.
Foundry test
Manual review
use the transfer method to transfer the tokens back to both players
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.