How Pyth Oracle Settlement Works (and Why It Means No Disputes)
The hardest part of any prediction market is deciding who won. LeakCall answers price questions by reading a signed price from the Pyth on-chain oracle at the deadline — automatically, with no human judge and no dispute window. Here is how that works and why it matters.
The resolution problem
Every prediction market needs a trustworthy way to decide the outcome. If a human or a committee reports the result, users have to trust that reporter, and many designs add a dispute window where the result can be challenged. That is flexible, but it means real markets can stay unresolved while people argue, and it reintroduces exactly the middleman that on-chain markets are supposed to remove.
What is Pyth?
Pyth is an on-chain price oracle. Major trading firms and exchanges publish their price data directly to it, and those prices are aggregated and made available on Solana as signed, verifiable updates. Instead of trusting one reporter, a program can read a cryptographically-attested market price for assets like BTC, ETH and SOL.
How LeakCall reads the price
When a market such as "Will SOL be above $200 by the deadline?" reaches its deadline, the LeakCall program fetches the relevant Pyth price update. It checks that the update is fully verified (guardian-signed), that the price is recent rather than stale, and that it is a valid positive value. It then compares the price to the market target and direction and records the outcome on-chain.
Because the market stored the target and direction when it was created, the result is a simple comparison: is the settled price above or below the target? Yes means one side wins, no means the other.
Deterministic vs optimistic oracles
An optimistic oracle assumes a reported answer is correct unless someone challenges it in time. A deterministic oracle computes the answer directly from trusted data. LeakCall uses the deterministic approach for price markets: the outcome is a pure function of the signed price, the target, and the direction.
The practical difference is certainty and speed. There is no window in which the result could change, and no scenario where two honest observers look at the same signed price and disagree.
Why there are no disputes
A dispute only makes sense when the outcome depends on judgement. Here it does not. Given the Pyth price at the deadline, the target, and whether the market asked above or below, the answer is mechanical. There is nothing to report and therefore nothing to contest — which is why LeakCall has no dispute mechanism at all.
The trade-off
Deterministic oracle settlement only works for questions with a reliable on-chain price feed. That is why LeakCall focuses on crypto and select stock price targets rather than arbitrary events like elections or sports. It is a deliberate narrowing: give up breadth to guarantee that every market settles instantly, automatically, and without argument.
Frequently asked questions
What is an oracle in crypto?
An oracle is a service that brings external data, such as asset prices, onto the blockchain so that smart contracts can use it. Pyth is a price oracle.
Can the settlement price be faked?
LeakCall requires a fully-verified, guardian-signed Pyth price and rejects stale or partial data. A forged or unverified price cannot be used to resolve a market.
What happens if the feed is stale at the deadline?
Resolution requires a recent, valid signed price within a freshness window. It uses the attested price at settlement rather than an outdated one.
Which assets can settle this way?
Assets with a reliable Pyth price feed — major crypto such as BTC, ETH and SOL, plus select stocks.
Is this the same as Polymarket's UMA oracle?
No. UMA is an optimistic oracle with human reporting and a dispute window. Pyth is a signed price feed, and LeakCall reads it deterministically with no dispute step.