Constants§
- ADMIN_
ADDRESS - Authority for
Initialize. Replace with your deploy multisig before mainnet. - EXECUTOR_
ADDRESS - Signs executor-gated instructions:
AdminInstantSettlement,AdminPayout,AdminVoidPeriod,AdminInitWeek. Replace before production. - FEE_
COLLECTOR - SPL USDC recipient for team-fee legs.
- MARKET_
BUCKET_ SECS - Duration of each 5-minute market bucket in seconds.
open_ts = period * MARKET_BUCKET_SECS,close_ts = open_ts + MARKET_BUCKET_SECS. - MAX_BPS
- Basis points denominator (100%).
- PYTH_
BTC_ USD_ FEED_ ID - BTC/USD canonical Pyth feed ID.
- PYTH_
BTC_ USD_ PRICE_ FEED_ ACCOUNT - BTC/USD Pyth push feed account (shard 0, identical on mainnet-beta and devnet).
- PYTH_
MAX_ PRICE_ AGE_ SECS - Maximum age in seconds for a Pyth price to be considered fresh.
- PYTH_
PUSH_ ORACLE_ PROGRAM - Pyth Push Oracle program (continuously-maintained push feed accounts, ~400 ms heartbeat).
- PYTH_
RECEIVER_ PROGRAM - Pyth Receiver program (pull feeds).
- TICKET_
BUYBACK_ BPS - Ticket revenue split to buyback reserve (BPS).
- TICKET_
DAILY_ BPS - Ticket revenue split to daily pool (BPS).
- TICKET_
TEAM_ BPS - Ticket revenue split to team (BPS).
- TICKET_
WEEKLY_ BPS - Ticket revenue split to weekly pool (BPS).
- TREASURY
- PDA seed for the
Treasuryaccount. - USDC_
MAINNET_ MINT - SPL USDC mint (devnet test mint — replace with Circle mainnet mint for production).