Skip to main content

Structure

Each binary market has exactly two outcomes: outcome=0 (YES) and outcome=1 (NO). On-chain this corresponds to a single conditionId with outcomeSlotCount=2 on ConditionalTokens. Token IDs are derived deterministically on-chain from the condition:
On the API, these IDs are available as:
  • yesTokenId / outcomes[0].tokenId = position ID for the 0b01 index set (outcome 0 YES)
  • noTokenId / outcomes[1].tokenId = position ID for the 0b10 index set (outcome 1 NO)
You buy into an outcome by acquiring its corresponding position token. At resolution, the winning token becomes redeemable 1-for-1 for 1 USDC; the losing token becomes worth 0.

Trading

Use outcome: "0" or outcome: "1" in the order request. The server resolves this to the correct tokenId for you. Internally the Order.tokenId field in the EIP-712 payload carries the raw position ID. When building the EIP-712 order payload:
  • verifyingContract: Read exchangeAddress directly from the market object (GET /api/markets/{slug} or GET /api/markets), falling back to ctfExchange from GET /api/platform/contracts. For generation-2 markets (contractGeneration: 2), exchangeAddress points to ctfExchangeGen2.
  • feeRateBps: Set to the market’s feeTakerBps from the market detail.

Split and merge

A user can exchange 1 USDC for a full set {1 YES, 1 NO}, or collapse a full set back into 1 USDC:
Both use the vault co-signature flow: request the backend signature, sign the typed data with your EOA, and submit either via POST /api/me/positions/op-submit (platform submits and pays gas) or on-chain directly through Vault.splitPosition / Vault.mergePositions. See Positions for details.

Settlement

  1. The platform proposes the outcome via Oracle.proposeOutcome. Binary markets across both contract generations share the primary Oracle contract (oracle in GET /api/platform/contracts).
  2. The challenge window opens (2 hours by default, or 0 seconds on fast-path markets).
  3. If no challenge is upheld, Oracle.finalizeOutcome(conditionId) calls ConditionalTokens.reportPayouts, unlocking redemption.
  4. Holders redeem winning position tokens through their vault — the tokens sit in the vault, so calling ConditionalTokens.redeemPositions from your EOA pays nothing. With auto-redeem on (the default), the platform redeems winnings of at least 1 USDC for you within a few minutes. For smaller winnings, or with auto-redeem off, use POST /api/me/positions/redeem (the platform pays the gas) or call Vault.redeemPositions(conditionId, indexSets) on-chain; see Market status.
See Settlement flow for the timeline.