ZUGCON rewards
ZUGCON is a pump.fun memecoin on Solana mainnet that thanks both players of a finished ZUG Arena game: 20,000 ZUGCON to the creator (white) and 10,000 to the joiner (black). Games are played on devnet; the reward is paid on mainnet to the same wallet address.
Rules
- Only a finished game with an opponent counts:
WhiteWins,BlackWinsorDrawon chain. Games nobody joined and aborted games earn nothing. - The result is read live from the devnet match account (base layer or rollup). If the account was closed after settlement, the indexed row must record the settlement. The index alone is never enough.
- A game shorter than
ZUGCON_MIN_PLIES(default 10 plies) earns nothing. - Per UTC day a wallet is rewarded for at most
ZUGCON_DAILY_GAMES_PER_WALLETgames (10) andZUGCON_DAILY_GAMES_PER_PAIRgames (3) against the same opponent. - One claim per seat per game, stored in
reward_claimsbefore the transfer leaves the backend, so a retry after a crash checks the recorded signature instead of paying twice.
Flow
- The play page (and the review page for players who come back later) asks
GET /api/rewards/matches/:matchId?wallet=once the game is finished. - When
eligibility.eligibleis true, a "You earned 20,000 ZUGCON" banner opens a modal. - The player signs the message from
GET .../challenge(free, no transaction) and the frontend posts it toPOST .../claim. - The backend verifies the signature, re-checks the chain, inserts the claim row, creates the recipient's
token account if needed and sends
transfer_checkedfrom the drip wallet, which also pays the fee. - The modal shows the Solscan link. The claim row keeps
status,tx_signatureand anyerror.
Operations
Env vars are listed in backend/.env.example under "ZUGCON rewards". /api/health reports rewards
with the drip wallet's SOL and ZUGCON balances. Keep 1-2 weeks of rewards and ~0.5 SOL in the drip wallet;
the reserve lives in a cold treasury (see the ZUGCON launch guide in the project files).
Each first-time recipient costs ~0.002 SOL of token-account rent on top of the transaction fee.