What is dYdX v4?
๐ New to this? Just start reading at the top โ it begins in plain English and gets more detailed as you scroll. Jump to any level:
๐ข The simple version
Plain English โ no jargon. Start here.
dYdX v4 is a perpetual futures DEX that migrated from Ethereum to its own Cosmos-based blockchain โ the dYdX Chain โ giving it full control over its order matching infrastructure, distributing all trading fees to DYDX token stakers (rather than to Ethereum validators), and achieving sub-second order processing with full decentralisation.
dYdX's evolution โ from Ethereum to Cosmos
dYdX started in 2017 as one of the first DeFi derivatives protocols. dYdX v3 (2021) was a hybrid model: an off-chain order book and matching engine (operated by dYdX Trading Inc.) combined with on-chain settlement on StarkEx (a StarkWare ZK-rollup). This gave good performance but was centralised โ dYdX Trading operated the matching engine and could censor orders.
dYdX v4 (2023) is a complete architecture overhaul: the entire protocol โ order book, matching, and settlement โ runs on a decentralised Cosmos SDK blockchain called the dYdX Chain. Every validator runs the order book in memory; orders are matched by the validator producing the next block. This creates a fully decentralised perpetual futures exchange with no centralised matching engine.
Fee distribution โ 100% to stakers
In dYdX v4, 100% of trading fees are distributed to DYDX stakers (validators and delegators). This is a major change from v3 where dYdX Trading Inc. received fees. DYDX stakers earn real yield from actual trading activity โ the more trading volume on dYdX, the more stakers earn. This creates direct value accrual to the DYDX token from protocol usage.
What DYDX does
DYDX is the native token of the dYdX Chain โ used for staking (validators), governance, and earning trading fee distributions. Total supply: ~230 million DYDX (circulating).
Is it legal in India?
Yes. DYDX is a VDA under Indian law. 30% tax and 1% TDS apply. See India regulation.
๐ก A bit more detail
For when you want to go a little deeper.
The dYdX Chain architecture
The dYdX Chain uses Cosmos SDK with CometBFT consensus. Validators maintain an in-memory order book โ orders are not stored on-chain between blocks but in each validator's memory, synchronized via CometBFT's gossip layer. When a block is produced, the validator matching the block selects the best orders to fill from the in-memory book and includes the resulting fills in the block as on-chain transactions. Positions, collateral, and P&L are stored on-chain. This "off-chain order book, on-chain settlement" model is a pragmatic compromise โ the order book operates at near-memory speed, while positions are secured by the full dYdX Chain.
dYdX v4 consistently ranks among the highest-volume perp DEXes globally, competing with Hyperliquid for institutional and professional trader volume. The protocol supports BTC, ETH, SOL, and 50+ other perpetual markets. DYDX stakers (through validators and delegators) earn meaningful yield from trading fees โ creating an income stream for long-term DYDX holders aligned with protocol growth. dYdX's Cosmos SDK foundation allows interoperability with the broader IBC ecosystem, enabling cross-chain collateral deposits. Several institutional trading firms use dYdX as a decentralised prime brokerage alternative.
dYdX vs Hyperliquid โ the comparison
Both dYdX v4 and Hyperliquid are purpose-built blockchain perp DEXes, but they differ significantly. dYdX uses Cosmos SDK (battle-tested infrastructure, broad IBC interoperability) and has a longer track record. Hyperliquid uses a custom-built L1 (HyperBFT) optimised specifically for trading, achieving ~200ms latency vs dYdX's ~1 second. Hyperliquid expanded to spot trading and token launches (HIP-1/HIP-2); dYdX remains focused on perps. Hyperliquid's airdrop (0% VC) generated stronger community loyalty. dYdX's longer history and Cosmos ecosystem integration give it different institutional relationships.
Key dYdX metrics: daily trading volume, open interest, DYDX staking yield (fee distribution APR), validator count and stake distribution (decentralisation), and market share in the perp DEX sector. dYdX's fee-to-staker model is the strongest long-term value accrual mechanism in perp DeFi โ DYDX holders earn proportional to volume. Live data: CoinGecko ยท dYdX.exchange.
๐ฃ The full technical picture
For the technically curious.
Order book consensus on dYdX Chain
dYdX Chain's order book consensus is novel. Standard blockchains (Ethereum, Cosmos chains) treat all transactions as equal โ they enter the mempool and are included in blocks in some order. dYdX orders are different: they have complex matching semantics (price-time priority, partial fills, iceberg orders) that cannot be handled by standard transaction inclusion. dYdX's solution: each validator maintains an in-memory "canonical" order book synchronized via the p2p gossip layer. When a validator proposes a block, it includes matched trades from the in-memory order book as a special "order matching" transaction at the top of the block. Other validators verify the match is valid (correct price-time priority) before accepting the block. This "stateful mempool" approach gives dYdX exchange-quality order semantics while maintaining blockchain consensus.
Source: dYdX v4 documentation. docs.dydx.exchange ยท dYdX Chain GitHub: github.com/dydxprotocol/v4-chain
MegaVault โ cross-market liquidity
dYdX v4 introduced MegaVault โ a protocol-level liquidity vault where users deposit USDC and the vault algorithmically provides liquidity across all dYdX perpetual markets simultaneously. Unlike Hyperliquid's HLP (which is a single vault), MegaVault is integrated into the protocol architecture โ it receives a portion of trading fees as the "market maker of last resort" and dynamically allocates capital to where it is most needed. DYDX holders can vote to direct MegaVault's allocation strategy via governance.
dYdX's oracle integration uses a median price from multiple sources: Binance, Coinbase, Kraken, and other major exchanges. Each validator independently fetches oracle prices and votes on the current price in each block. The protocol uses a weighted median of validator price votes, with validators weighted by their stake. Prices that deviate significantly from the median are rejected. This distributed oracle design means no single data source can manipulate dYdX's oracle โ an attacker would need to compromise a majority of stake-weighted validators simultaneously.
Key facts
- Type: Cosmos-based perp DEX (fully decentralised)
- Architecture: In-memory order book + on-chain settlement
- Fee model: 100% of trading fees to DYDX stakers
- Consensus: CometBFT (Cosmos SDK)
- MegaVault: Cross-market protocol liquidity
- DYDX supply: ~1 billion (total)
- Founded: 2017 (Antonio Juliano)