Prediction markets and outcome trading.
We design and build prediction market infrastructure from the pricing layer through settlement. Binary events, multi outcome scenarios, sports, politics, crypto volatility, and custom enterprise forecasting. The math is hard, the operations are harder, and the resolution logic is where most platforms fail. We build the systems that survive all three.
What we engineer.
We build the infrastructure that prediction market platforms run on. The market topics are yours to choose. We handle the engineering underneath.
Binary Outcome Contracts
The smart contract layer for yes/no markets where two outcome tokens trade against each other and prices reflect implied probability. Pricing must stay bounded between zero and one, positions must be fully collateralized, and resolution must be unambiguous.
- Outcome token minting with full collateral backing
- Probability pricing that stays bounded and arbitrage consistent
- Automated market resolution with configurable dispute windows
- Position redemption and payout distribution on settlement
Multi Outcome Contracts
Smart contract frameworks for markets with three or more possible results. Conditional token systems allow traders to take positions on specific outcomes within a set where all probabilities must sum to one. Combinatorial extensions let traders express views on combinations across multiple questions.
- Conditional token minting across arbitrary outcome sets
- Probability normalization so outcome prices always sum correctly
- Combinatorial position management for correlated events
- Partial resolution for markets where some outcomes settle before others
AMM and Liquidity Pool Design
Custom automated market makers built specifically for prediction markets. Standard AMMs designed for token swaps do not work for outcome markets because prediction tokens resolve to zero or one. We design pricing curves, fee structures, and liquidity incentives tuned for this dynamic.
- LMSR and CPMM variants tuned for prediction market mechanics
- Dynamic fee structures that adjust based on time to resolution
- Concentrated liquidity ranges for markets near certainty
- Liquidity provider incentive design and impermanent loss mitigation
Oracle Integration and Resolution
The data pipeline that feeds real world outcomes on chain so contracts know who won. Oracle failure is the single biggest operational risk in prediction markets. We design multi source resolution with consensus logic, fallback paths, and dispute windows that protect both the platform and its traders.
- Multi oracle resolution with consensus and fallback logic
- Configurable dispute periods with escalation to governance
- Emergency resolution procedures with operator override safeguards
- Support for Chainlink, UMA, API3, and custom data feeds
Settlement and Payout Infrastructure
The contract logic and operational tooling that moves funds from losing positions to winning ones after resolution. Settlement must be atomic, correct, and fast. Batch processing handles markets with thousands of position holders. Reconciliation confirms every payout matches the final outcome.
- Atomic batch payout processing for high volume markets
- Stablecoin settlement via USDC and EURC
- Position close and partial exit before resolution
- Automated reconciliation between market state and on chain balances
Platform Operations and Monitoring
The dashboards, alerts, and admin tools that let an operator run a prediction market platform without constantly watching smart contracts. Liquidity health monitoring, suspicious trading pattern detection, market creation workflows, and regulatory reporting for licensed operators.
- Operator dashboards for market health and liquidity tracking
- Anomaly detection for insider trading patterns
- Market creation and parameter management tooling
- Regulatory reporting exports for licensed jurisdictions
Scenarios we engineer for.
These scenarios reflect the types of prediction market engagements we take on. The market types vary, but the engineering challenges are consistent. Pricing, resolution, liquidity, and settlement must all hold together under real conditions.
Binary prediction markets for a crypto platform
A crypto platform wants to launch binary prediction markets covering real world events, from regulatory decisions to protocol milestones. This requires a conditional token framework where each market mints yes and no tokens backed by collateral, an AMM designed for two outcome markets, oracle integration for feeding event results on chain, and a settlement pipeline that pays out winning positions automatically. The market creation flow needs to be simple enough that the operations team can launch new markets daily without developer involvement.
On chain settlement for a sports betting operator
A sports betting operator wants to move settlement on chain for transparency while keeping the user experience familiar. This requires smart contracts that hold all wagers in escrow, receive verified match results from sports data oracles, and distribute payouts without manual processing. The system needs to handle pre match markets, in play markets with dynamic odds, and multi leg parlays. Settlement transparency means every bet, every odds change, and every payout is verifiable on chain.
Internal prediction markets for enterprise forecasting
A large enterprise wants to use internal prediction markets to improve product launch forecasting and resource allocation decisions. This requires a private market platform where employees trade using internal tokens, with markets covering questions like "will feature X ship by Q3" or "which region will exceed its sales target." The platform needs to aggregate predictions into probability dashboards that leadership can use for planning, while keeping individual positions anonymous to encourage honest forecasting.
Perpetual prediction positions on crypto volatility
A DeFi protocol wants to build perpetual prediction positions that let traders take continuous views on crypto volatility without expiration dates. This requires a funding rate mechanism that keeps the prediction price anchored to realized volatility, a liquidation engine for leveraged positions, and an oracle system that feeds reliable volatility data. Unlike standard prediction markets that resolve at a fixed time, perpetual positions require ongoing mark to market settlement and position management.
Audience prediction markets for a media company
A media company wants to run audience prediction markets around entertainment events, from award show outcomes to reality television eliminations to box office performance. This requires a consumer friendly market creation pipeline, social features that encourage engagement, a resolution system that handles entertainment outcomes which sometimes get announced live on television, and a compliance framework that distinguishes prediction markets from regulated gambling in the relevant jurisdictions.
How prediction market pricing works.
A prediction market is a settlement engine. From the outside it looks like a place to bet. From the inside it is a machine that takes opinions, prices them against each other, holds collateral while the world makes up its mind, and then settles. Every part of that machine breaks in a different way.
Implied Probability from Token Prices
In a binary prediction market, a Yes token trading at 0.65 implies the market believes there is a 65 percent chance the event will occur. This price is not set by an authority. It emerges from the trading activity of participants who disagree about the probability. The AMM or order book translates that disagreement into a continuous price signal. When the event resolves, winning tokens are redeemable for one unit of collateral and losing tokens become worthless.
For multi outcome markets, each outcome token has a price, and the prices of all outcome tokens in a market must sum to one (minus fees). If they drift apart, arbitrageurs can profit by minting a complete set of outcome tokens for one unit of collateral and selling the overpriced ones, or buying underpriced tokens and redeeming a complete set. This arbitrage mechanism keeps prices honest.
Position Management
Traders buy outcome tokens to express a view. A trader who believes an event is more likely than the market price implies buys Yes tokens. A trader who disagrees buys No tokens. Positions can be closed before resolution by selling tokens back to the AMM or on a secondary market. The profit or loss depends on the difference between the entry price and exit price, not on whether the event ultimately occurs.
Position tracking must handle partial fills, cost basis averaging across multiple trades, and unrealized profit and loss calculations that update as the market price moves. For leveraged prediction positions, the system also needs to track margin requirements, maintenance margins, and liquidation thresholds in real time.
Market Creation and Parameter Setting
Creating a new prediction market requires defining the question, the possible outcomes, the resolution source, the resolution date, the initial liquidity, and the fee structure. Each parameter has downstream consequences. A poorly worded question leads to disputed resolution. Insufficient initial liquidity leads to wide spreads that discourage early trading. A resolution date set too far in the future ties up capital and reduces participation.
We build market creation systems that enforce guardrails. Minimum liquidity requirements, question templates for common market types, mandatory resolution source specification, and preview flows that show creators how their market will behave under different trading scenarios before it goes live.
Resolution Conditions and Edge Cases
Resolution seems simple until it is not. What happens if a sporting event is postponed? What if an election is contested? What if the oracle source becomes unavailable? What if the outcome is technically ambiguous? Every market needs clearly defined resolution rules that cover the expected outcome and the unexpected ones. We design resolution conditions that specify the primary data source, fallback sources, the dispute window, and the procedure for outcomes that do not fit cleanly into the predefined categories.
Dispute Resolution Mechanisms
When a market resolves and someone disagrees with the outcome, there needs to be a structured process for challenging it. We design dispute mechanisms with escalating cost and authority. An initial dispute might require a bond and trigger a review period. If the dispute is upheld, the bond is returned and the market resolution is corrected. If the dispute fails, the bond is forfeited. For high stakes disputes, escalation to a governance vote or arbitration committee provides a final backstop.
The goal is not to eliminate disputes but to make them expensive enough to discourage frivolous challenges while remaining accessible enough that legitimate errors get corrected. The incentive design matters as much as the technical implementation.
Resolution is where markets die.
Most prediction market failures are not pricing failures. They are resolution failures. An oracle misreports, a question is ambiguously worded, a committee disagrees, or an outcome arrives in a form the contract was not expecting. We design resolution as a first class concern.
Oracle Integration Patterns
We integrate with Chainlink data feeds for financial and crypto price markets, UMA's optimistic oracle for arbitrary real world event resolution, API3 for first party oracle data, and custom oracle implementations for specialized data sources. Each oracle type has different trust assumptions, latency characteristics, and failure modes. We select and configure oracle sources based on the specific requirements of each market type.
For sports markets, we connect to verified sports data providers through oracle networks. For political markets, we use combinations of official government sources and consensus based resolution. For crypto price markets, we aggregate multiple price feeds with outlier detection.
Multi Source Resolution
Relying on a single oracle source is a single point of failure. We design multi source resolution where the contract queries multiple independent data sources and applies consensus logic. If three out of four sources agree, the market resolves. If sources disagree beyond a threshold, the market enters a dispute state rather than resolving incorrectly.
- Configurable consensus thresholds across oracle sources
- Outlier detection to identify and exclude malfunctioning feeds
- Fallback resolution paths when primary sources are unavailable
- Timeout handling for oracles that fail to report within expected windows
Handling Ambiguous Outcomes
Real world events do not always resolve cleanly. An election recount changes the winner weeks after election night. A sporting event is abandoned midway through. A company announces a merger that technically satisfies one reading of a market question but not another. We design resolution rules and contract logic that explicitly address ambiguity.
- Void market resolution when outcomes are genuinely undetermined
- Pro rata refund distribution for voided markets
- Split resolution for outcomes that partially satisfy multiple categories
- Grace periods before final resolution to accommodate late information
Emergency Resolution Procedures
Sometimes a market needs human intervention. The oracle provider goes offline, a black swan event makes the original question meaningless, or a vulnerability is discovered in the resolution logic. We build emergency resolution procedures with operator override capabilities that are powerful enough to fix genuine problems but constrained enough to prevent abuse. Every emergency action is logged on chain, subject to a timelock, and governed by multisig authorization. The goal is a venue where disputes are rare, boring, and fair.
Why standard AMMs break here.
Constant product AMMs are convenient and, for thin prediction markets, genuinely ruinous. Prediction markets have unique properties that require purpose built pricing mechanisms. The tokens resolve to zero or one, outcomes are correlated, and liquidity providers face risks that do not exist in standard token swap pools.
Logarithmic Market Scoring Rules
LMSR, originally proposed by Robin Hanson, is the most theoretically grounded pricing mechanism for prediction markets. It provides bounded loss for the market maker, meaning the maximum subsidy required to operate the market is known in advance. It produces smooth price curves that respond proportionally to trade size. And it naturally handles multi outcome markets by pricing a complete set of outcomes simultaneously.
The tradeoff is parameter sensitivity. The liquidity parameter (often called b) controls how responsive prices are to trades. Set it too low and small trades move prices dramatically. Set it too high and the market requires enormous volume to reflect new information. We tune this parameter through simulation against expected trading patterns and adjust it dynamically as market conditions change.
Constant Product Adaptations
For platforms that prefer the familiarity of Uniswap style mechanics, we build adapted constant product AMMs that account for prediction market constraints. The key modification is handling the fact that outcome token prices must sum to one (or the collateral price). Standard x*y=k curves do not enforce this constraint, so we add rebalancing logic that maintains price consistency across outcome tokens while preserving the constant product invariant within each trading pair.
We also implement modifications for markets approaching certainty. When one outcome token trades near zero or one, standard curves produce extreme slippage. We use piecewise curves or virtual liquidity to maintain reasonable spreads even at the extremes of the probability range.
Liquidity Bootstrapping and Incentives
New prediction markets face a cold start problem. Without liquidity, spreads are wide and traders stay away. Without traders, there is no reason to provide liquidity. We design bootstrapping mechanisms that seed initial liquidity through the market creator, incentivize early liquidity providers through fee sharing and token rewards, and gradually transition to self sustaining liquidity as trading volume grows.
For liquidity providers, we design incentive structures that account for the unique risks of prediction market LPing. Unlike standard AMM pools where impermanent loss is temporary, prediction market LPs face permanent loss when the market resolves because one side of the pool becomes worthless. Our incentive designs compensate for this risk through higher fee shares, early exit mechanisms, and resolution insurance pools.
Slippage Management and Depth Optimization
We build slippage protection into every trade execution path. Maximum slippage parameters, partial fill logic, and price impact previews give traders confidence that large orders will not move the market more than expected. For operators, we provide depth visualization tools that show how much liquidity exists at each price level and alert when depth falls below configured thresholds. We think about what happens when a whale shows up five minutes before resolution, and we build the safeguards that keep the market orderly when that happens.
Tools we use daily.
We choose tools based on the market type and chain requirements. These are the languages, frameworks, oracle systems, and infrastructure we work with across our prediction market engagements.
Smart Contract Platforms
We build prediction market contracts on the chains that match the market requirements. Ethereum and L2s for markets that need deep DeFi composability. Solana for high frequency trading where throughput and low fees matter. Polygon for consumer facing markets where gas cost is a barrier to participation.
Oracle and Data Infrastructure
Oracle selection depends on the market type. Price feeds for financial markets, optimistic oracles for real world events, and custom oracle implementations for specialized data sources. We integrate with multiple providers and build consensus layers on top.
Market Standards and Libraries
We build on established token standards and prediction market frameworks where they exist, and extend them where the standard implementations fall short. Conditional token frameworks provide the foundation for multi outcome markets. Custom AMM implementations handle the pricing mechanics specific to outcome trading.
Backend and Monitoring
Prediction markets need continuous monitoring. Is liquidity healthy? Are there suspicious trading patterns? Is resolution proceeding smoothly? We build indexing pipelines, monitoring dashboards, and alerting systems so operators can stay on top of their markets at all times.
Adjacent work we do.
Verifiable data and proofs
The verification layer that keeps resolution honest and settlement auditable.
On chain gaming
Adjacent discipline. Same questions about liquidity, fairness, and house risk.
Smart contract systems
The contracts underneath the market, threat modelled for the trades you hope never happen.
Tell us what your market needs to survive.
Send us the market type, the chain, and the edge cases that keep you up at night. We will tell you which parts are solved problems and which parts will need real engineering.