Skip to main content

Hybrid vs Full On-Chain Perpetual Futures

Key Concepts

IDTermDefinition
1HotStuffa consensus algorithm that uses a leader-based approach to achieve consensus in a partially synchronous network. It is the basis for HyperBFT, used in Hyperliquid's App-Chain
2BSTBinary Search Tree, a data structure that allows for efficient searching, insertion, and deletion of elements.
3CLOBCentral Limit Order Book, a type of order book where all orders are visible and matched based on price-time priority.
4Front-runthe act of executing a trade based on advance knowledge of pending orders, potentially leading to unfair advantages.
5AppChainis a custom-built blockchain designed to host a single decentralized application.

1. Summary

This document analyses the architectural spectrum for perps infrastructure, from hybrid models that split execution across off-chain and on-chain components to fully on-chain designs where every operation is a verifiable transaction.


2. The Architecture

Perps protocols exist on a spectrum defined by two questions:

  1. Where does matching happen? (off-chain vs on-chain)
  2. Where does settlement happen? (on-chain vs off-chain)
CategoryMatchingSettlementTrust ModelExamples
Centralised ExchangeOff-chain (internal)Off-chain (internal)Trust the operatorBinance, MEXC, Bybit, etc..
HybridOff-chain (node/sequencer)On-chain (smart contract)Trust the operator (matching + settlement)Strike Finance V2
App-ChainOn-chain (own L1)On-chain (own L1)Trust the L1 validatorsHyperliquid (HyperL1), dYdX v4
Fully On-ChainOn-chain (shared L1)On-chain (shared L1)L1 + smart contractsPhoenix, Drift

3. Case Study: Strike Finance V2 (Hybrid on Cardano)

Architecture

Strike Finance V2 operates on Cardano with a hybrid architecture:

  • Order book & matching: Off-chain, managed by the Strike Node (a centralised operator)
  • Settlement & custody: On-chain via locker contracts on Cardano
  • Liquidations: Triggered off-chain by the Strike Node, executed on-chain

How It Works

  1. Order submission: Traders send an order to the Strike Node via API
  2. Matching: The Strike Node matches orders using a centralised matching engine (sub-second latency)
  3. Settlement: Once matched, the settlement is recorded on-chain through Cardano smart contracts (locker/validator scripts)
  4. Position management: Position state lives on-chain, collateral is locked in on-chain vaults
  5. Liquidations: The Strike Node monitors positions off-chain and triggers liquidation transactions on-chain when margin thresholds are breached

Trust Model

ComponentTrust Assumption
MatchingTrust the Strike Node to match fairly (price-time priority)
Order book stateTrust the off-chain matching engine's order book
SettlementTrustless. on-chain verification possible
LiquidationsSemi-trusted. off-chain triggers, chain validates

Trade-offs

AdvantageDisadvantage
Low matching latencyCentralised operator can censor trades
Low on-chain compute requirementsOrder book state not verifiable in real-time
Compatible with chains that lack throughputReplay-based auditability (deterministic log)
Easier to build complex ordersOperator downtime halts all trading

Structural Challenges of Hybrid Architectures

ChallengeWhy It Matters
Closed-source matching enginesOff-chain matching engines are typically proprietary. Users cannot inspect the matching logic, verify price-time priority. The execution layer is a black box.
Limited operatorsOff-chain execution layers are believed to operate with relatively few operators.
Opaque order flowOrders are submitted to a private API. There is no public mempool, no visible order book state, and no way for users to verify that orders are processed in the announced order.
Limited censorship resistanceThe off-chain matching engine can silently delay, reorder, or reject orders. There is no on-chain mechanism to prove that censorship occurred.
Operator dependencyIf the single operator goes offline, all trading halts. Redundancy depends on having multiple independent operators.

Key Insight

Hybrid architectures represent a pragmatic trade-off: use off-chain infrastructure for performance-sensitive operations (matching) while leveraging on-chain contracts for trust-sensitive operations (settlement, custody). This is a valid engineering decision, especially on chains where L1 throughput is insufficient for a CLOB.

However, the trade-off is trust, users must believe the node operator behaves correctly. On-chain settlement protects custody of funds, but does not protect the integrity of the trading process itself. The promise of future decentralisation does not change the current reality: today, the matching layer is a black box.


4. Case Study: Hyperliquid (App-Chain)

Architecture

Hyperliquid takes a different approach: instead of splitting across off-chain and on-chain, it builds everything on-chain but on its own dedicated L1 blockchain (HyperL1) running the HyperBFT consensus algorithm.

  • Order book & matching: On-chain (HyperL1)
  • Settlement: On-chain (HyperL1)
  • Risk management: On-chain (HyperL1)
  • Oracle: Native oracle system integrated into HyperL1

How It Works

  1. Order submission: Orders are submitted to a fully on-chain CLOB.
  2. Matching: The HyperBFT consensus engine matches orders with sub-second latency
  3. Settlement: All state transitions (positions, balances, funding) are consensus-validated
  4. Risk management: Margin checks, liquidations, and funding rate updates all occur on-chain
  5. Oracle: Validators publish spot oracle prices every 3 seconds, computed as weighted median of external CEX prices (Binance, OKX, Bybit, etc.) weighted by stake

Trust Model

ComponentTrust Assumption
MatchingTrust HyperL1 validators (stake-weighted)
ConsensusTrust HyperBFT (HotStuff variant)
SettlementOn-chain, verifiable by any HyperL1 node
OracleValidator-computed from CEX prices (weighted median by stake)

Trade-offs

AdvantageDisadvantage
Everything on-chain (no off-chain components)Separate L1 - ecosystem fragmentation
Sub-second latency (median 0.2s)New consensus mechanism (HotStuff variant)
High throughput (~200k orders/sec)Limited validator set (centralisation concerns)
Full auditability of all operationsAssets bridged from other chains (bridge risk)
No sequencer dependencyNot composable with Solana/Ethereum ecosystem
No gas fees for tradersOracle depends on external CEX price feeds

Key Insight

Hyperliquid proves that fully on-chain perps can work at scale, processing ~200k orders/sec with sub-second latency. HyperCore's design principle of no off-chain order books is a meaningful step toward decentralisation. However, the system still relies on a limited validator set and a new consensus mechanism (HyperBFT).


5. Fully On-Chain CLOB

Architecture

Fully on-chain CLOB protocols execute every operation, order placement, cancellation, matching, settlement, liquidation, funding as on-chain transactions. No off-chain sequencer or matching engine.

  • Order book: On-chain data structure (slab, BST, or similar)
  • Matching: On-chain (price-time priority matching engine)
  • Settlement: On-chain (position creation, PnL settlement)
  • Risk management: On-chain (margin checks, liquidations, funding rates)
  • Oracle: Decentralised oracle network or validator-computed prices

Requirements for a Fully On-Chain CLOB

Not every chain can support a fully on-chain CLOB. The requirements are demanding:

RequirementWhy It Matters
High throughputOrder books generate massive state writes, the chain must handle thousands of TPS
Low latencyTraders expect sub-second order confirmation
Low transaction feesHigh fees make frequent order placement/cancellation uneconomical
Parallel executionMatching engine must process orders concurrently without bottlenecks
Rich state modelNeed to store order book, positions, margins on-chain

Trust Model

ComponentTrust Assumption
MatchingDeterministic price-time priority enforced by on-chain program
Order bookFully verifiable state, reconstructable from on-chain data
SettlementExecuted via smart contracts and L1 consensus
LiquidationsPermissionless execution, validated by protocol rules
OracleDecentralised oracle or validator-computed prices

Trade-offs

AdvantageDisadvantage
No operator to trust - only L1 + smart contractsHigher on-chain compute costs
Censorship-resistant - anyone can submit txLatency limited by block time
Fully verifiable - all state on-chainIntroduces additional trust assumptions and upgrade risk
Composable - integrates with on-chain ecosystemComplex program architecture
Upgradeability via governance or admin-controlled mechanismsRequires chain with high throughput

Notable Projects

ProjectChainStatusNotes
PhoenixSolanaLiveCLOB, fully on-chain
DriftSolanaPausedCLOB, fully on-chain

6. Detailed Comparison

Architecture Comparison

AspectHybridApp-ChainFully On-Chain
MatchingOff-chain nodeOn-chain (own L1)On-chain (smart contract)
SettlementOn-chain (parent chain)On-chain (own L1)On-chain (same L1)
Order bookOff-chain (node)On-chain (own L1)On-chain (smart contract)
Risk managementSemi-off-chainOn-chainOn-chain
LatencySub-secondSub-second (median 0.2s)Depends on L1 (~400ms on Solana)
ThroughputHigh (off-chain)High (dedicated L1)Depends on L1
Trust modelTrust operatorTrust validators + bridgeL1 + smart contracts
Matching open-sourceDepends on protocolYesDepends on protocol
AuditabilityReplay-based (after the fact)Full on-chainFull on-chain (real-time)
DecentralisationDepends on node operatorsDepends on L1 validatorsDepends on L1
Censorship resistanceLow (operator controls order flow)MediumHigh (permissionless tx)
Ecosystem composabilityFull L1 ecosystemOwn L1 onlyFull L1 ecosystem
Bridge riskNone (native)Yes (bridged assets)None (native)
Gas feesDepends on L1VariesDepends on L1

Trust Assumptions

ModelWhat You Must Trust
HybridThe node operator matches fairly, doesn't front-run, doesn't censor. Execution layer is typically closed-source. No public mempool. No real-time order book verification.
App-ChainThe L1 validators are honest, the consensus is secure, bridges work
Fully On-ChainThe smart contract code and the underlying L1 consensus

Performance vs Trust

LatencyThroughputTrust Required
HybridSub-second (off-chain matching)High (off-chain)Trust operator
App-ChainSub-second (own L1)High (own L1)Trust validators + bridge
Fully On-ChainDepends on L1Depends on L1L1 + smart contracts

Hybrid and App-Chain models offer comparable high performance. App-chains achieve this through a dedicated L1, while hybrid models achieve it through off-chain matching. Fully on-chain CLOBs on shared L1s offer the highest trust level but are constrained by the L1's throughput and latency.


7. Conclusion

The perps market is converging on a single insight: verifiable execution matters. Hybrid models offer convenience but require trust. App-chains offer performance but fragment the ecosystem. Fully on-chain CLOBs on shared L1s offer the highest trust level but depend on chain capabilities.

The architecture that will dominate depends on the trade-offs each protocol is willing to make. However, the trend is clear: the market is moving toward greater transparency, verifiability, and decentralisation. Fully on-chain CLOBs represent the natural end state of this evolution.


References