Skip to main content

Module instruction

Module instruction 

Source
Expand description

Instruction discriminators + payload types (Ore: single instruction.rs).

Structs§

AdminInitWeek
Advance the global week counter (Treasury::current_week += 1).
AdminInstantSettlement
AdminRefundVoidPosition
Refund a single STATE_PENDING position from a voided market back to the player’s Ledger.
AdminVoidMarket
Void an open market when BTC moves < 0.01% (or for oracle failure).
BuyTickets
Purchase tickets: user pays amount USDC (micro base units); team cut to fee collector; remainder splits into Treasury pools; Ledger credits unstaked_micros and tickets.
ClaimPositionFee
ExecutorTreasury
EXECUTOR_KIND_DISTRIBUTE_MARKET_REWARD: pool and amount must be 0 (series_id must match market.series_id).
InitMarket
Creates Market (executor signer) or records open Pyth snapshot (crank).
Initialize
One-time Initialize: creates Treasury PDA + treasury USDC ATA. Economics and routing pubkeys are crate::consts (FEE_COLLECTOR for team-fee SPL legs). payer must be ADMIN_ADDRESS.
PlaceBet
Spend ticket_units from Ledger into Position / Market while STATUS_OPEN and now < close_ts:

Enums§

StreakInstruction

Constants§

EXECUTOR_KIND_DISTRIBUTE_MARKET_REWARD
EXECUTOR_KIND_JACKPOT_PAY
EXECUTOR_KIND_MARKET_LINE_RELEASE
EXECUTOR_KIND_MERGE_COMMITTED_POSITION