Skip to main content

Module consts

Module consts 

Source

Constants§

ADMIN_ADDRESS
The authority allowed to invoke Initialize. Replace with your deploy multisig / key before mainnet.
BTC_VOID_THRESHOLD_BPS
Void threshold in basis points of absolute price move (1 bp = 0.01%).
CP_AMM_PROGRAM_ID
Meteora DAMM cp_amm program ID (CPI claim_position_fee; local tree damm-v2/programs/cp-amm).
EXECUTOR_ADDRESS
Must sign executor-gated instructions: InitMarket, AdminInstantSettlement, ExecutorTreasury, ClaimPositionFee. Replace before production.
EXECUTOR_PAY_DAILY_JACKPOT
ExecutorTreasury (JACKPOT_PAY pool): debit crate::state::Treasury::daily_jackpot.
EXECUTOR_PAY_WEEKLY_JACKPOT
ExecutorTreasury (JACKPOT_PAY pool): debit crate::state::Treasury::weekly_jackpot.
FEE_COLLECTOR
SPL USDC recipient for team-fee legs: ticket_team_bps (BuyTickets), hook_team_bps (ClaimPositionFee).
HOOK_BUYBACK_BPS
Hook fee to buyback (MAX_BPS scale).
HOOK_RESERVE_BPS
Hook fee accrued to treasury reserve (MAX_BPS scale).
HOOK_TEAM_BPS
Hook fee to team (MAX_BPS scale).
HOOK_WEEKLY_BPS
Hook fee routed to weekly pool (MAX_BPS scale).
LEDGER
The seed of the ledger account PDA.
MARKET
PDA seed for crate::state::Market.
MARKET_OPEN_ANCHOR_GRACE_SECS
InitMarket (open-anchor crank / tail of create): Clock::unix_timestamp must satisfy ∈ [open_ts, min(open_ts + this constant, close_ts)) so the open tick aligns with bucket start (fixed-bucket oracle anchor).
MAX_BPS
Basis points denominator (100%).
MAX_MARKET_SERIES
Maximum supported concurrent market series (series_id0..MAX_MARKET_SERIES). Treasury::next_period is a monotonic floor cursor (max(period+1) bookkeeping); InitMarket and PlaceBet do not require matching it.
POSITION
PDA seed for crate::state::Position.
PRIZE_DAILY_BPS
Prize-side routing to daily (MAX_BPS scale).
PRIZE_RESERVE_BPS
Prize-side reserve routed into treasury weekly (MAX_BPS scale).
PRIZE_WEEKLY_BPS
Prize-side weekly share (MAX_BPS scale).
PYTH_BTC_USD_FEED_ID
BTC/USD canonical Pyth price feed ID (Hermes / Pythnet).
PYTH_BTC_USD_PRICE_FEED_ACCOUNT
BTC/USD push feed account — shard 0, maintained by the Pyth Data Association.
PYTH_MAX_PRICE_AGE_SECS
Maximum age in seconds (vs Clock::unix_timestamp) that a Pyth Hermes PriceUpdateV2 publish_time may lag behind the on-chain clock before it is rejected as stale.
PYTH_PUSH_ORACLE_PROGRAM
Pyth Push Oracle program — continuously updates price feed accounts on-chain.
PYTH_RECEIVER_PROGRAM
Pyth Receiver program (Hermes pull feeds) — same address on mainnet-beta and devnet.
TICKET_BUYBACK_BPS
Ticket revenue split to buyback reserve (MAX_BPS scale).
TICKET_DAILY_BPS
Ticket revenue split to daily pool (MAX_BPS scale).
TICKET_MICROS
Smallest SPL USDC increment: 10^-6 USD per base unit; ticket purchases and market stakes use whole multiples (1 whole USDC = TICKET_MICROS units).
TICKET_TEAM_BPS
Ticket revenue split to team (MAX_BPS scale).
TICKET_WEEKLY_BPS
Ticket revenue split to weekly pool (MAX_BPS scale).
TREASURY
The seed of the program treasury PDA (owns the protocol USDC ATA).
USDC_MAINNET_MINT
SPL USDC mint on Solana mainnet-beta (Circle). Token accounts in ix must use this mint (Initialize is implicit via consts). EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v - mainnet