Skip to main content

Module instruction

Module instruction 

Source
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§

AdminPayout
Pay amount µUSDC from the treasury ATA to recipient_ata. Used for winner payouts, jackpot distributions, and withdrawals. Only EXECUTOR_ADDRESS may sign.
AdminRouteFees
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 Treasury PDA + treasury USDC ATA. payer must be ADMIN_ADDRESS.

Enums§

StreakInstruction