A recent incident involving Ostium has brought oracle integrity back into focus across the perp DEX space.
On a perpetuals platform, the oracle feed is not a peripheral data source — it is the pricing layer that every open, close, and liquidation references. When that layer fails, everything downstream fails with it. Understanding how oracle systems can break, and how protocols defend against those failure modes, matters more than most traders realize.
LeverUp's oracle system exclusively relies on prices from Pyth's permissioned validators, with multiple reference-based protection triggers in place to further safeguard price integrity. This article explains what that means and why it matters.
Two Different Oracle Failure Modes
There are two distinct categories of oracle risk on perp platforms:
Feed staleness — the oracle publishes valid prices but the feed lags behind the market. Prices reflect conditions from one or two seconds ago. This creates a window where traders reference a snapshot that has already moved, leading to execution drift and liquidations at prices that don't match live market conditions. This is the problem LeverUp addressed with the upgrade to Pyth Pro (see the data here).
Feed integrity failure — the oracle publishes prices that are wrong. Not stale, but incorrect. This can happen through validator compromise, data feed manipulation, or a price submission that deviates sharply from actual market conditions. On a venue where every trade references oracle prices for execution and mark-to-market, a single integrity failure can cause cascading incorrect liquidations or positions settled against prices that never reflected the real market.
Staleness is an execution quality problem. Feed integrity failure is an existential risk. They require different defenses.
Why Permissioned Validators Change the Risk Profile
Pyth Network operates with credentialed publishers — market makers, exchanges, and institutional data providers who have been vetted and are accountable for the data they publish. The set of entities that can submit prices to the Pyth network is not open to anyone.
This is different from permissionless oracle designs, where price submissions can come from a broader, less vetted set of actors. Permissionless systems typically address the risk of bad submissions through economic mechanisms — stake slashing, outlier exclusion, or aggregation across many sources. These mechanisms provide statistical protection but do not eliminate the underlying question of who is submitting prices and whether they have the infrastructure and incentives to get it right.
Permissioned validator sets address the problem at the source: only vetted, accountable entities can contribute. The trade-off is that the publisher set is smaller. The benefit is that each publisher has a reputational and contractual stake in the accuracy of the data they provide. For a perp venue where oracle pricing is load-bearing infrastructure, that accountability layer is a meaningful part of the security posture.
LeverUp's oracle system relies exclusively on prices from this permissioned layer.
Reference-Based Protection Triggers
Permissioned validators reduce the risk of a corrupted price submission reaching the protocol. Reference-based protection triggers provide a second layer of defense even when the feed itself is functioning as designed.
The concept: rather than accepting any oracle price update unconditionally, the protocol validates incoming prices against reference points before using them for execution.
A price update that deviates sharply from recent history, exceeds a confidence threshold, or falls outside the expected range relative to reference benchmarks will trigger a protection mechanism rather than being applied directly to live positions. This catches scenarios where:
- A single price feed produces an anomalous reading that doesn't match broader market conditions
- A price spike or dip occurs that is technically a valid on-chain submission but falls outside the bounds of what the protocol should use for liquidation calculations
- Feed conditions degrade in a way that the upstream oracle layer doesn't immediately flag
Multiple triggers working in parallel — not a single circuit breaker — means the protection is not binary. The protocol can distinguish between a genuine market move and a feed integrity event, and respond differently to each.
Why This Architecture Matters at the Protocol Layer
On a perp platform with protocol-managed virtual liquidity, oracle pricing feeds directly into mark-to-market calculations, liquidation thresholds, and settlement. There is no order book matching layer that can buffer or absorb a bad price; the oracle price is the settlement price.
This makes oracle security a different class of problem than it is on a hybrid or orderbook venue. On an orderbook DEX, market makers can choose not to quote around a price they believe is wrong — the market has a natural mechanism to reject a bad oracle reading. On a protocol-managed venue, that buffer doesn't exist in the same form.
The combination of permissioned validator input and multi-trigger protection is designed to address this directly: tighten the set of who can submit prices, and then validate those prices against reference constraints before they can affect live positions.
The Broader Context
The Ostium incident is a reminder that oracle design decisions made during a protocol's build phase have real consequences at scale. In practice, oracle security is often treated as a secondary concern during testnet phases — the oracle works, the feed updates, and attention moves to execution quality and product features.
The incidents that matter, however, tend to occur after a protocol reaches meaningful open interest. At that point, the attack surface is larger and the cost of a feed integrity failure is proportionally higher.
LeverUp's oracle architecture — permissioned validators combined with reference-based protection triggers — was designed with this in mind. The goal is not to be unhackable; no system makes that claim. The goal is to ensure that the price layer that drives every trade on the platform is both fresh and validated against known reference constraints, with multiple independent checks before those prices can reach live positions.
Trade on LeverUp: app.leverup.xyz