LPsLux Proposals
Markets & DeFi
LP-9207

Prediction Markets

Final

Permissionless binary and scalar outcome markets resolved by an optimistic oracle with bonded proposals and a challenge window

Category
LRC
Created
2025-12-01

Abstract

Prediction markets enable trading on the outcome of real-world events. Markets are binary (yes/no) or scalar (numeric range). Market creation is permissionless. Resolution uses an optimistic oracle: a proposer asserts the outcome, and it is accepted after a challenge period unless disputed. Disputed outcomes are resolved by native oracle data (LP-9005) or by DAO vote.

Motivation

The hard part of a prediction market is not trading, it is resolution — most questions have no feed. An optimistic oracle turns resolution into an economic default: anyone posts a bond asserting the answer, and silence during the challenge window is the answer. Only contested questions cost a vote, so the common case settles with no governance at all.

Specification

Market Types

Binary market: trades outcome tokens YES and NO, each redeemable for 1 USDC if the outcome matches.

Scalar market: trades LONG and SHORT tokens over a numeric range [low, high]. Payout is linear interpolation based on the resolved value.

Market Creation

struct MarketParams {
    string  question;        // human-readable question
    uint256 resolutionTime;  // Unix timestamp when market resolves
    address collateral;      // settlement token (USDC)
    uint8   marketType;      // 0=binary, 1=scalar
    uint256 scalarLow;       // scalar lower bound (0 for binary)
    uint256 scalarHigh;      // scalar upper bound (0 for binary)
    bytes32 oracleFeed;      // native oracle feed for auto-resolution (optional)
}

Creator deposits 100 USDC as a market creation bond (returned after resolution).

Trading

Outcome tokens are minted/burned via a constant-product pool:

  • Mint: deposit 1 USDC, receive 1 YES + 1 NO
  • Burn: return 1 YES + 1 NO, receive 1 USDC
  • Trade: swap YES for NO (or vice versa) on the AMM, price reflects probability

Resolution

Auto-resolution: if oracleFeed is set, the market auto-resolves using the native oracle price at resolutionTime.

Optimistic resolution:

  1. After resolutionTime, anyone can propose an outcome with a 500 USDC bond
  2. 48-hour challenge period
  3. If unchallenged, outcome is finalized; proposer bond returned
  4. If challenged, the dispute goes to a DAO vote (LP-2800), with voting power per LP-3002

Redemption

After resolution:

  • Binary: winning token redeems 1:1 for USDC; losing token is worthless
  • Scalar: LONG redeems (resolvedValue - low) / (high - low) USDC per token; SHORT redeems the remainder

Fee Structure

FeeRateRecipient
Trading fee0.20% of trade valueLPs
Creation bond100 USDC (refundable)Creator
Resolution bond500 USDC (refundable)Proposer

Rationale

Bond sizes are set so that a false assertion is unprofitable against the size of a typical market: the proposer's 500 USDC is forfeit on a successful challenge, and the creator's 100 USDC is only returned once the market resolves, which prices the externality of writing an ambiguous question.

Security Considerations

  1. Oracle manipulation: auto-resolution uses a 1-hour TWAP ending at resolutionTime to resist manipulation.
  2. Ambiguous questions: poorly worded questions can lead to disputes. Market creators are incentivized to write clear questions to recover their bond.
  3. Low-liquidity manipulation: thin AMMs can be manipulated to show misleading probabilities. UI should display liquidity depth alongside prices.

Reference

ResourceLocation
Prediction contractsgithub.com/luxfi/standard/contracts/prediction/
Market factoryPredictionFactory.sol
Optimistic oracleOptimisticOracle.sol
  • LP-9005 — feeds used for auto-resolution
  • LP-9200 — the curve outcome tokens trade on
  • LP-2800 — dispute resolution

Copyright (C) 2024-2026, Lux Industries Inc. All rights reserved.

Licensed under the MIT License.