WinningToken
contract has no supply cap and allows minting of new tokens through internal game logic functions such as _cancelGame()
and _finishGame()
. Since tokens are minted rather than returned from escrow, players can receive new tokens upon game cancellation, while the original deposited tokens remain locked in the contract, potentially retrievable by the admin. This creates a scenario for infinite token inflation, undermining trust in the token’s value and enabling backdoor minting** **by the contract owner.
Use a vault or escrow system to securely manage token-based deposits and withdrawals.
Introduce a maximum total supply and enforce it in the mint()
function.
Code suggestions or observations that do not pose a direct security risk.
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.