Skip to main content

Module consts

Module consts 

Source

Constants§

ADMIN_ADDRESS
Authority for Initialize. Replace with your deploy multisig before mainnet.
EXECUTOR_ADDRESS
Signs executor-gated instructions: AdminPayout. 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%).
TICKET_BUYBACK_BPS
Ticket revenue split to buyback reserve (BPS).
TICKET_DAILY_BPS
Ticket revenue split to daily pool (BPS).
TICKET_PRICE_MICROS
Fixed cost to place one bet, in µUSDC (6 decimals). 1 ticket = 1 USDC. User.balance must be ≥ this before calling PlaceBet.
TICKET_TEAM_BPS
Ticket revenue split to team (BPS).
TICKET_WEEKLY_BPS
Ticket revenue split to weekly pool (BPS).
TREASURY
PDA seed for the Treasury account.
USDC_MAINNET_MINT
SPL USDC mint. Devnet: GAmHPNMcgh9BTpe3DWirqMwvYCeDskE2im6fUhZyukJp (custom devnet USDC) Mainnet: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v (Circle mainnet)
USER_TICKET
PDA seed for UserTicket accounts. Full seeds: [USER_TICKET, user_pubkey, series_id_le2, period_le8]