The contract incorrectly mints new tokens instead of returning the escrowed tokens to players during game cancellation or tie scenarios, leading to token supply inflation, a breakdown of the token economy and Permanent lockup of originally transferred tokens (no withdraw function for locked token
When players use Winner Tokens to stake in games, the tokens are transferred to the contract and should be returned to players in certain scenarios. Instead, the contract mints new tokens in various resolution paths:
This issue causes:
Original tokens remain locked in the contract permanently
New tokens are minted needlessly, increasing total supply
Token economy is disrupted with each game resolution
Token value potentially diminishes due to inflation
This vulnerability results in:
Unbounded token supply inflation
Devaluation of Winner Tokens over time
Broken token economics
Permanent lockup of originally transferred tokens
Potential manipulation of token scarcity/value
Manual code review
Token flow analysis
Economic impact assessment
Return Escrowed Tokens: Modify the resolution functions to transfer escrowed tokens instead of minting:
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.