dYdX V4

dYdX V4 represents a fundamental architectural migration: away from Ethereum and StarkEx (a ZK-rollup by StarkWare) and onto a dedicated Cosmos SDK application chain. The key innovation is the hybrid orderbook/settlement design — validators maintain the orderbook off-chain (enabling performance similar to centralized exchanges) while settlement, custody, and liquidations are fully on-chain. This architecture eliminates two long-standing criticisms of DEX perpetuals: latency (on-chain matching is slow) and protocol centralization (previous versions relied on dYdX Inc. for the orderbook and matching engine). V4 routes all trading fees to DYDX stakers, creating direct economic alignment between staking and protocol revenue.


Why Move Off Ethereum?

The following sections cover this in detail.

Historical dYdX Architecture

To understand V4, you must understand why dYdX moved at all:

V1–V2 (2019–2021): Smart contracts on Ethereum L1. Fully on-chain orderbook and matching. Problem: 15-second Ethereum blocks made limit orders unusable; every order update cost gas.

V3 (2021–2023): Moved to StarkEx (permissioned ZK-rollup by StarkWare). Orderbook off-chain (dYdX Inc. operated the matching engine); settlement on StarkEx L2. Problems:

  • dYdX Inc. ran the matching engine → centralization criticism
  • StarkEx fees went to StarkWare, not DYDX holders
  • dYdX had no control over StarkEx upgrades
  • No permissionless market listings

V4 Solution: Build own chain with Cosmos SDK → own the full stack.


V4 Architecture

The protocol is built around the following components.

The Appchain Model

dYdX Chain is a sovereign Cosmos SDK chain:

Property Detail
Consensus CometBFT (Tendermint successor)
Block time ~1.2 seconds
Block finality ~3 seconds
Validators 60 validators at launch; permissioned
Cross-chain bridge Noble USDC (native IBC USDC) → Ethereum via Squid/Noble
Settlement token USDC (via IBC from Noble Protocol)

Off-Chain Orderbook, On-Chain Settlement

The core V4 design:

Orderbook (Off-chain):

  • Each validator maintains an in-memory orderbook
  • Order placement, cancellation, and matching happen in validator memory
  • No gas cost for placing/canceling limit orders
  • Validators gossip order state via dedicated protocol

Settlement (On-chain):

  • Matched orders are committed to the chain in each block
  • Liquidations are fully on-chain
  • Insurance fund is on-chain
  • All settlement is deterministic and auditable

Why not fully on-chain? An orderbook on a blockchain requires a transaction (and fee) for every order update. For a market like BTC-USD with thousands of order updates per second, this is computationally and economically impossible even on fast chains.

Why not fully off-chain? Users would have to trust dYdX’s matching engine with custody. V4’s on-chain settlement means dYdX validators cannot steal user funds — only validators who commit malicious settlement blocks would need to collude (and are slashed).

MegaVault: Unified Liquidity

V4 introduced MegaVault — a single unified liquidity vault where any user can deposit USDC to provide liquidity across all markets simultaneously:

  • Depositors receive vault shares proportional to contribution
  • Vault earns trading fees and funding rate arb across all markets
  • Vault LP tokens can be used as collateral for trading

MegaVault replaced earlier isolated per-market vaults and enables more capital-efficient market making for the entire platform.


DYDX Token Migration

One of V4’s key changes: the DYDX token migrated from Ethereum ERC-20 to native Cosmos chain token.

V3 DYDX (Ethereum ERC-20)

  • Used only for governance voting on dYdX’s L1 contracts
  • No staking yield from protocol operations

V4 DYDX (Native Chain Token)

  • Staking: Stake DYDX to validators; earn trading fee share
  • Governance: On-chain governance of the chain itself (parameter changes, new market listings, insurance fund usage)
  • Validator incentive: Validators are compensated partially in DYDX inflation and partially in fee revenue

Migration mechanism: Users bridged ERC-20 DYDX to native DYDX via dYdX Bridge (closes April 2025). Both tokens had same total supply (1B DYDX).


Key V4 Features

The key features are described below.

Permissionless Market Listing (Governance)

V4 introduced governance-controlled market listings with reduced overhead:

  1. Any holder can submit a governance proposal to list a new perpetual market
  2. Validators vote
  3. If passed, new market goes live with default parameters
  4. Community can later adjust leverage, funding rate caps, maintenance margin via governance

Previous versions: dYdX Inc. manually reviewed and added each market.

Full Fee Distribution

V4 fee split (approximate):

  • Validators + stakers: ~100% of fees (after operating costs)
  • Trading fee discount: Active traders receive discounts based on 30-day volume tier (up to 50% discount for highest tier)

This is a major DeFi primitive: trading fees creating direct, on-chain yield for governance token holders — similar to Hyperliquid’s model.

Cross-Chain Deposits via IBC

User journey to deposit USDC:

  1. Bridge USDC to Noble Protocol (Cosmos parachain running Circle’s CCTP)
  2. IBC transfer from Noble to dYdX Chain
  3. Trade

Or via integrated front-ends (Squid Router, dYdX UI) that abstract this to a single transaction from any L1/L2.


V4 vs Competitors

The following sections cover this in detail.

dYdX V4 vs Hyperliquid

Dimension dYdX V4 Hyperliquid
Architecture Cosmos appchain Custom L1
Orderbook Validator-managed off-chain Centralized HyperBFT validator set
Fee token DYDX (stakers get fees) HYPE (stakers get fees)
TVL ecosystem Focused on perps Full L1 with DeFi apps
DEX volume ~$1-2B daily peak ~$5B+ daily peak

Hyperliquid has generally outperformed dYdX in volume and activity since V4 launch, but dYdX has stronger institutional adoption and more established brand.

dYdX V4 vs GMX

GMX (Arbitrum/Avalanche) uses pooled liquidity (GLP/GM) rather than an orderbook. dYdX V4’s orderbook model tends to deliver tighter spreads and better price discovery; GMX’s model has no counterparty risk for traders per se (they trade against the pool). Different use cases: dYdX for high-frequency and institutional; GMX for retail buy/sell.


Challenges and Criticism

Validator concentration: 60 validators with significant minimum stake creates quasi-centralization vs. public chains with thousands of validators.

Complexity of bridging: Multi-step IBC deposit process is more complex than native chain DEXes (e.g., depositing on Hyperliquid which runs its own chain natively).

Volume vs Hyperliquid: Despite V4’s technical sophistication, Hyperliquid captured much of the retail perpetuals market in 2024, creating competitive pressure.

DYDX token performance: Despite 100% fee revenue distribution, DYDX price has underperformed vs expectations, partly due to token unlock schedule and stiff competition.


How to Access dYdX V4

Trading: Connect a Cosmos wallet (Keplr) or use the dYdX web interface at dydx.exchange. Deposit USDC via the integrated bridge. No KYC for on-chain access.

DYDX: Available on Coinbase — . Stake to validators for fee revenue.

Hardware security: Store DYDX with Ledger (Cosmos app supports DYDX chain) — .

Related Terms


Sources

dYdX Foundation. (2023). dYdX Chain: Architecture and Design. dYdX Technical Documentation.

Angeris, G., Chitra, T., Evans, A., & Xu, J. (2021). Optimal Fees for Geometric Mean Market Makers. arXiv:2104.00446.

Chitra, T., Kulkarni, K., Angeris, G., & Garg, S. (2021). Competitive Equilibria between Staking and On-Chain Lending. arXiv:2105.02419.

Kaiko Research. (2024). Decentralized Derivatives Exchange Landscape: Volume and Liquidity Analysis. Kaiko Report Q2 2024.

Bartoletti, M., Chiang, J.H., & Lluch-Lafuente, A. (2021). SoK: Lending Pools in Decentralized Finance. Financial Cryptography Workshop.