Prediction Markets
Permissionless binary and scalar outcome markets resolved by an optimistic oracle with bonded proposals and a challenge window
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:
- After
resolutionTime, anyone can propose an outcome with a 500 USDC bond - 48-hour challenge period
- If unchallenged, outcome is finalized; proposer bond returned
- 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
| Fee | Rate | Recipient |
|---|---|---|
| Trading fee | 0.20% of trade value | LPs |
| Creation bond | 100 USDC (refundable) | Creator |
| Resolution bond | 500 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
- Oracle manipulation: auto-resolution uses a 1-hour TWAP ending at
resolutionTimeto resist manipulation. - Ambiguous questions: poorly worded questions can lead to disputes. Market creators are incentivized to write clear questions to recover their bond.
- Low-liquidity manipulation: thin AMMs can be manipulated to show misleading probabilities. UI should display liquidity depth alongside prices.
Reference
| Resource | Location |
|---|---|
| Prediction contracts | github.com/luxfi/standard/contracts/prediction/ |
| Market factory | PredictionFactory.sol |
| Optimistic oracle | OptimisticOracle.sol |
Related LPs
- LP-9005 — feeds used for auto-resolution
- LP-9200 — the curve outcome tokens trade on
- LP-2800 — dispute resolution
Copyright
Copyright (C) 2024-2026, Lux Industries Inc. All rights reserved.
Licensed under the MIT License.