No oracle you have to trust. The chain checks the score itself.
MatchCall never lets an operator decide who won. A market can only resolve to the outcome TxLINE cryptographically proved — verified on-chain, by the program, at settlement time.
Live World Cup scores come from TxLINE's cryptographically-signed sports feed. Every score update is hashed into a Merkle tree.
TxLINE writes the day's Merkle root into an on-chain account (a daily_scores_roots PDA of the TxLINE oracle program). The truth now lives on-chain.
Creating a market spins up a PDA + an SPL token escrow. Your mUSDC stake is transferred into that escrow by the prediction_escrow program — no operator custody.
At full-time the keeper fetches the score's Merkle proof and calls settle_market, which CPIs into TxLINE's validate_stat_v2. That instruction re-folds the proof to the anchored root; the market only settles if it matches. Winners then pull their pari-mutuel payout.
The settlement instruction, precisely
- settle_market(payload) is permissionless — anyone (our keeper) can call it with a valid TxLINE proof.
- It re-derives the daily_scores_roots PDA straight from the proof's own timestamp and checks the account is owned by the TxLINE program — so a caller can't swap in a fake root.
- It CPIs into TxLINE's validate_stat_v2 (discriminator [208,215,194,214,241,71,246,178]) and reads the returned boolean. If the proof doesn't fold to the anchored root, the CPI returns false and the whole transaction reverts.
- The winning outcome is derived on-chain from the proven final score — never supplied by the caller. Payout is pari-mutuel: your stake × total pool ÷ your-outcome pool.