Skip to main content

Module consts

Module consts 

Source

Constantsยง

ADMIN_ADDRESS
Authority for Initialize. Replace with your deploy multisig before mainnet.
DISBURSE_POOL_DAILY
AdminDisburseFromTreasury.pool โ€” debit Treasury.daily_jackpot.
DISBURSE_POOL_NONE
AdminDisburseFromTreasury.pool โ€” bet-round winner; treasury counters unchanged.
DISBURSE_POOL_WEEKLY
AdminDisburseFromTreasury.pool โ€” debit Treasury.weekly_jackpot.
EXECUTOR_ADDRESS
Signs executor-gated admin instructions. 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 of one prediction (1 USDC). Server debits user_balances.tickets by this amount.
TICKET_TEAM_BPS
Ticket revenue split to team (BPS).
TICKET_WEEKLY_BPS
Ticket revenue split to weekly pool (BPS).
TRADING_FEE_STABILITY_BPS
Share of trading fee revenue routed to stability reserve (BPS).
TRADING_FEE_WEEKLY_BPS
Share of trading fee revenue routed to weekly jackpot accrual (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]