Go to app

How do onchain perps work?

Published 11/20/2026, 12:21:38 PM

Answer

Onchain perpetual futures ("perps") are derivative contracts that let you speculate on an asset's price with leverage, with no expiration date, executed and settled on a blockchain rather than a centralized exchange. Here's how they work, based on the mechanics and protocol data I gathered.

1. The core problem: no expiry means no natural price anchor

A dated future converges to spot at settlement. A perpetual never expires, so venues must use recurring incentives and risk controls instead of expiry to keep the contract price near the underlying asset's price. As the Lynx explainer puts it, "A dated future has an expiry or settlement date. A perpetual does not, so venues use recurring incentives and risk controls instead of relying on expiry to resolve price differences" (https://lynx.finance/blog/onchain-perpetual-futures-explained).

2. The funding rate (the price-anchoring mechanism)

Funding is a periodic payment exchanged between long and short position holders that pulls the perp price back toward spot. Key mechanics, consistent across sources:

3. Index price vs. mark price (the oracle layer)

Perps rely on price oracles to define both the anchor and the liquidation trigger:

  • Index price = "the aggregate spot price of an asset across multiple major exchanges," ensuring the derivative tracks the broader market.
  • Mark price = derived from the index and used for funding and liquidation calculations, so a single exchange's manipulation can't trigger liquidations (https://chain.link/article/price-feed-architecture-perpetuals).

4. Margin and liquidation

Because positions are leveraged, traders post margin (collateral) and can be liquidated if the position moves against them. "You can hold any position as long as you have enough margin" (https://docs.defi.app/knowledge-base/trade-and-earn/trade-perpetuals/faqs). The mark price is what determines whether a position breaches its liquidation threshold.

5. The two dominant architecture models

Onchain perps split into two main designs, which differ in who provides liquidity and how price is set:

ModelHow it worksExamplesSource
Order book (CLOB)A central limit order book matches buyers/sellers of leverage; market makers post limit orders, takers hit them. No counterparty pool.Hyperliquid (own L1, "fully onchain perpetual futures and spot order books"), dYdX v4 (chain-native oracle)https://arxiv.org/html/2512.19113v3, https://hoge.gg/how-perp-dexs-work-on-chain-perpetual-futures-2026/
Pool / oracle-pricedTraders open positions against a shared liquidity pool; LPs are the "house" and an oracle sets the price.GMX (Arbitrum/Avalanche, GM tokens), Jupiter, Drift (Pyth oracle)https://hoge.gg/perp-dexs-2026-how-on-chain-perpetual-futures-work, https://arxiv.org/html/2512.19113v3

A third variant is Synthetix, which uses a shared debt pool: "Synthetix Perps is a decentralized perpetual futures exchange... that utilizes liquidity from the Synthetix debt pool," with margin denominated in sUSD (https://github.com/Synthetixio/Synthetix-Gitbook-Docs/blob/en/synthetix-protocol/the-synthetix-protocol/synthetix-litepaper.md).

6. Concrete protocol parameters (as of the comparison data)

A Spark comparison of major perp DEXs shows the range of leverage and fees:

Bottom line

Onchain perps replicate CEX derivatives but with non-custodial, publicly verifiable settlement. The three pillars are: (1) funding rates to tether the contract to spot without expiry, (2) oracle-derived index/mark prices for fair pricing and liquidation, and (3) margin + liquidation to manage leverage risk. The main design choice is whether liquidity comes from an order book (Hyperliquid, dYdX) or a liquidity pool (GMX, Jupiter, Drift, Synthetix). Trade-offs: order books offer tighter execution but need market makers; pools offer deep liquidity but expose LPs to impermanent loss when traders profit (https://www.dwf-labs.com/research/373-diving-deep-into-decentralised-perpetual-futures-an-ecosystem-overview-and-strategic-analysis).

Caveats: My data is drawn from educational explainers and protocol docs, not live market data — exact leverage caps, fees, and pair counts change over time, so treat the specific numbers as point-in-time snapshots. I did not verify current live funding rates or open interest; those would require onchain/structured data beyond this research.