Expand description
Instruction discriminators + payload types (Ore: single instruction.rs).
Structs§
- Admin
Init Week - Advance the global week counter (
Treasury::current_week += 1). - Admin
Instant Settlement - Admin
Refund Void Position - Refund a single
STATE_PENDINGposition from a voided market back to the player’sLedger. - Admin
Void Market - Void an open market when BTC moves < 0.01% (or for oracle failure).
- BuyTickets
- Purchase tickets: user pays
amountUSDC (micro base units); team cut to fee collector; remainder splits intoTreasurypools;Ledgercreditsunstaked_microsandtickets. - Claim
Position Fee - Executor
Treasury EXECUTOR_KIND_DISTRIBUTE_MARKET_REWARD:poolandamountmust be 0 (series_idmust matchmarket.series_id).- Init
Market - Creates
Market(executor signer) or records open Pyth snapshot (crank). - Initialize
- One-time
Initialize: createsTreasuryPDA + treasury USDC ATA. Economics and routing pubkeys arecrate::consts(FEE_COLLECTORfor team-fee SPL legs).payermust beADMIN_ADDRESS. - Place
Bet - Spend
ticket_unitsfromLedgerintoPosition/MarketwhileSTATUS_OPENandnow < close_ts: