Trade settlement vs. market settlement
- Trade settlement (Fills & Orders) occurs continuously as orders match in the off-chain matching engine. Batches are submitted on-chain by the platform’s
match-submitterservice toCTFExchange(for binary markets) orNegRiskCtfExchange(for neg-risk markets). On-chain transaction confirmation is indexed bychain-watcherand projected viachain.fill_settledevents intoexchange-service, updating vault balances and trade states. - Market settlement (Resolution & Redemption) occurs after the real-world event concludes. Outcomes are proposed, disputed, or finalised on-chain through dedicated oracle contracts (
Oraclefor binary markets,NegRiskOraclefor neg-risk markets). Once finalised, winning and voided positions are redeemed back into USDC inside users’ custody vaults.
Flow
Trade execution lifecycle and propose / challenge / finalize timelines.
Challenges
500 USDC bond, 2h window, override / confirm / void outcomes.
Void / delayed
When automated settlement cannot proceed safely.
Contracts
CTFExchange, Vaults, ConditionalTokens, and Oracles.
Data sources
The platform integrates with multiple match-data providers (for example Stats Perform, API-Football and LSports). By default a market is configured with one source; some markets are configured with additional sources. When a market has several sources, the rule is a strict majority: more than half of the configured sources must report the same outcome (with two sources, both). A market moves toDELAYED when the configured source(s) cannot produce a safe, unambiguous outcome — data is unavailable or ambiguous, there is no strict majority among the configured sources, or the source reports the event cancelled or abandoned (the platform then decides whether to void). See Void & delayed.
Bond + challenge window
Binary and neg-risk markets both settle through the propose → challenge → finalize lifecycle with a bond-backed challenge window. Binary markets useOracle (keyed by conditionId); neg-risk markets use NegRiskOracle (negRiskOracleGen2 on generation 2; keyed by negRiskMarketId), which settles every outcome of the group in one transaction — see Flow.
On both:
- Challenger bond: 500 USDC (the oracle’s
bondAmount(); the amount for a given proposal is fixed in itsbondSnapshot) - Challenge window: 2 hours after proposal by default (the exact deadline is
resolution.challengeWindowClosesAt) - Only the first challenge per market is accepted
- On binary
Oracle, a challenge can be bound to the proposal hash viachallengeOutcome(conditionId, expectedProposalHash)
See Void & delayed for what the void payout vector means for redemption.
Emergency paths
These exist on both oracles; the id is theconditionId (binary) or the negRiskMarketId (neg-risk).
markDelayed(id)/undelay(id)— pause while waiting for data. CallsoraclePauseMarketon the exchanges registered on that oracle.voidMarket(id)/voidMarketWithPayouts(id, payouts, reasonHash)— void path authorised by a resolver onOracleand by the owner on the neg-risk oracles. On neg-risk,voidMarketis queued first (queueVoidMarket) and is unavailable after any conversion;voidMarketWithPayouts(id, yesPayouts, noPayouts, reasonHash)is a separate path that is not queued and can be used after conversions, if the payouts are solvent, but not while a void is queued — see Void & delayed.initiateProposalClear(id)+executeProposalClear(id)— 7-day timelock path for clearing a stuck or erroneous proposal.executeProposalClearWithConsent(...)— instant proposal clear path requiring co-signatures from the platform and an independent emergency clear guardian (emergencyClearGuardian) within the consent window.
What partners typically need to know
- Trade fills settle on-chain in batches submitted by
match-submittertoCTFExchange/NegRiskCtfExchangeand indexed bychain-watcher. Fills become final on-chain within seconds of matching. - Market payouts are not final until the oracle finalises the market.
- Subscribe to
market_lifecycleon/ws/market(id = marketsymbol):market_resolvedfires on finalisation,market_disputedon a challenge, and every status change — includingVOIDEDandDELAYED— arrives asstatus_changed. - Redemption goes through your vault, which holds the outcome tokens. Auto-redeem, on by default, redeems voided-market refunds and winnings of at least 1 USDC per market for you within a few minutes of the final status via
AutoRedeemBackfillServiceandBatchOrchestratorServicemulticall. For anything smaller, or with auto-redeem off, use the gaslessPOST /api/me/positions/redeem, or have the vault owner callVault.redeemPositions/Vault.redeemPositionsNegRisk(see Redemption). The payout is credited automatically to the USDC row’savailableinGET /api/me/balances.