Expand description
Instruction discriminators + payload types.
The on-chain program is a thin USDC custody + price-chain layer. All game logic (bets, balances, pools, leaderboards) is off-chain.
Structs§
- Admin
Instant Settlement - Advance the price chain: read
Treasury::last_close_*as the open reference, read the Pyth push feed as the close price, resolve UP/DOWN, emitPeriodSettled, and write the close price back toTreasury::last_close_*. - Admin
Payout - Pay
amountµUSDC from the treasury ATA torecipient_ata. Used for winner payouts, jackpot distributions, and withdrawals. OnlyEXECUTOR_ADDRESSmay sign. - Deposit
- User deposits USDC into the treasury. Emits
Deposited { user, amount }so the server can credit the user’s off-chain balance. - Initialize
- One-time setup: creates
TreasuryPDA + treasury USDC ATA and seeds the genesis BTC close price from the Pyth push feed.payermust beADMIN_ADDRESS.