Expand description
Instruction discriminators + payload types.
The on-chain program is a thin USDC custody layer. All game logic (bets, balances, pools, leaderboards, settlement) is off-chain. Settlement outcome is derived off-chain via the Pyth Hermes REST API.
Structs§
- Admin
Payout - Pay
amountµUSDC from the treasury ATA torecipient_ata. Used for winner payouts, jackpot distributions, and withdrawals. OnlyEXECUTOR_ADDRESSmay sign. - Admin
Route Fees - Route claimed DBC / DAMM v2 trading fees into the treasury and split them on-chain.
- Deposit
- User deposits USDC into the treasury. Emits
Deposited { user, amount }so the indexer can credit the user’s off-chain balance. - Initialize
- One-time setup: creates
TreasuryPDA + treasury USDC ATA.payermust beADMIN_ADDRESS.