Conditional Tokens
PredMarkets uses the Conditional Tokens Framework (ERC-1155) to represent each binary market outcome. Every market produces two outcome positions backed by the same collateral token.
Lifecycle
- Prepare condition - the MarketFactory creates the condition for a specific asset, duration, and epoch.
- Match orders - when liquidity crosses, settlement funds and distributes the corresponding outcome positions.
- Hold or trade - positions can be held to expiry or sold back into the order book before resolution.
- Resolve - the PythResolver verifies a Pyth price proof and reports the winning outcome after the epoch closes.
- Redeem - holders of winning tokens redeem for collateral through Conditional Tokens.
Index Sets
UP / YES uses index set 1 and DOWN / NO uses index set 2. Those index sets derive the ERC-1155 position ids from the condition id.