January 11, 2022
April 16, 2025

dYdX v4 - Full Decentralization

Product
dYdX v4 - Full DecentralizationdYdX v4 - Full Decentralization

tldr;

  • 🚱 The top priority is to open source the next version of the protocol, v4, by end-of-year 2022
  • ✅ dYdX v4 will be fully decentralized, with no central components
  • ❎ No central party (including dYdX Trading Inc.) will have the ability to receive trading fees on dYdX v4
  • đŸȘŠ The current dYdX perpetuals protocol will eventually be deprecated after the migration to dYdX v4 is complete

dYdX’s mission is to build the world’s leading crypto trading platform.

In 2021, dYdX grew to become the largest decentralized exchange by trading volume, and began challenging major centralized exchanges for market share.

Decentralization is core to dYdX’s mission. We believe decentralization will drive radical improvements in transparency, safety, fairness, and equality of opportunity.

To further this mission, we are developing the next version of the protocol, v4. dYdX v4 will be open source, fully decentralized and entirely controlled by the community. dYdX’s top priority is to release dYdX v4 by the end of 2022.

dYdX Today

Today, dYdX functions as a hybrid decentralized exchange. This means that most components of dYdX are decentralized, but some components are run on servers operated by dYdX Trading Inc. and other partners.

The core exchange protocol is built on Ethereum smart contracts and STARK (zero knowledge) rollups powered by Starkware. This structure ensures full transparency and self custody of all funds and positions on dYdX. Additionally, all of dYdX governance and staking are built on smart contracts. dYdX contracts are all open source and audited by third parties, and do not have central admin capabilities.

The main components of dYdX that run centrally are the orderbook and matching engine. dYdX’s orderbook trading model has allowed dYdX to grow into the most liquid exchange in all of crypto. Running a central matching engine has allowed dYdX to scale to tens of millions of orders placed per day with sub-second latency, and has enabled dYdX to grow to well over a billion dollars a day in trading volume.

dYdX v4

With v4, dYdX will become fully decentralized. There will no longer be central points of control or failure of the protocol; all aspects of the protocol that can be controlled could be fully controlled by the community.

The primary aspect of fully decentralizing dYdX is decentralizing the orderbook and matching engine. The main challenges are:

Throughput: dYdX’s off-chain system today processes ~500 orders per second. This is a factor of ~100x higher than the number of trades per second. Ideally, v4 would allow for even higher order capacity.

Finality: Part of the offchain matching engine’s job is to sequence trades and give traders immediate finality on the outcome of their trades.

Fairness: Operators of the network and frontrunners should not be able to extract value from legitimate trading activity.

In addition to full decentralization, we are exploring adding to the v4 protocol:

  • Other trading products, such as spot, margin, and additional synthetic products
  • Improved margining and collateral options
  • Improvements to market structure and trading
  • Seamless addition of new trading markets

dYdX has been working on the architecture in partnership with Paradigm and other leading industry experts. We are excited to bring our history of engineering excellence in the DeFi space to tackle these new challenges.

Why Decentralization?

Our goal is to build the world’s leading crypto trading platform.

We believe DeFi represents a fundamental improvement over centralized financial platforms, and that, long term, the bulk of crypto trading will occur on DeFi.

DeFi offers a massive improvement in transparency. For the first time, the financial system itself is no longer a black box to users. With DeFi, users can trust code instead of corporations. dYdX v4 will be entirely open source and audited by industry experts.

DeFi enables true control of financial platforms by their participants. This dramatically increases fairness, community alignment, and equality of opportunity. The dYdX Foundation’s launch of dYdX governance has started dYdX down this path. Already we have seen significant activity from the dYdX community to drive meaningful change to the protocol. With dYdX v4, dYdX will be entirely community controlled and the future of dYdX will be in the community’s hands.

dYdX Trading Inc.

To date, dYdX Trading Inc. has served three main functions:

  • Develop software related to the dYdX protocol
  • Operate the offchain orderbook and matching engine
  • Promote growth of the dYdX protocol

In exchange for operating the offchain components of the protocol, dYdX Trading Inc. collects revenue through trading fees. As we work towards decentralization, we will use our capital to build out a strong brand, product and community.

Beginning with dYdX v4, dYdX Trading Inc. will not operate any part of the v4 protocol. As a result, it will no longer receive revenue based on trading fees from the v4 protocol. The same is true for all other centralized parties, unless the community decides otherwise.

The Next Year

dYdX v4 will be built and released by the end of 2022. dYdX v4 represents a large and critical improvement to the dYdX protocol, so will require months of heads down building. We are excited to release more information about dYdX v4 over the next year.

In the meantime:

If you’re excited about helping us build the future of DeFi with dYdX v4, check out our open roles!

Legitimacy and Disclaimer

Crypto-assets can be highly volatile and trading crypto-assets involves risk of loss, particularly when using leverage. Investment into crypto-assets may not be regulated and may not be adequate for retail investors. Do your own research and due diligence before engaging in any activity involving crypto-assets.

dYdX is a decentralised, disintermediated and permissionless protocol, and is not available in the U.S. or to U.S. persons as well as in other restricted jurisdictions. The dYdX Foundation does not operate or participate in the operation of any component of the dYdX Chain’s infrastructure.

The dYdX Foundation’s purpose is to support the current implementation and any future implementations of the dYdX protocol and to foster community-driven growth in the dYdX ecosystem.

The dYdX Chain software is open-source software to be used or implemented by any party in accordance with the applicable license. At no time should the dYdX Chain and/or its software or related components be deemed to be a product or service provided or made available in any way by the dYdX Foundation. Interactions with the dYdX Chain software or any implementation thereof are permissionless and disintermediated, subject to the terms of the applicable licenses and code. Users who interact with the dYdX Chain software (or any implementations thereof) will not be interacting with the dYdX Foundation in any way whatsoever. The dYdX Foundation does not make any representations, warranties or covenants in connection with the dYdX Chain software (or any implementations and/or components thereof), including (without limitation) with regard to their technical properties or performance, as well as their actual or potential usefulness or suitability for any particular purpose, and users agree to rely on the dYdX Chain software (or any implementations and/or components thereof) “AS IS, WHERE IS”.

Nothing in this post should be used or considered as legal, financial, tax, or any other advice, nor as an instruction or invitation to act by anyone.  Users should conduct their own research and due diligence before making any decisions. The dYdX Foundation may alter or update any information in this post in the future at its sole discretion and assumes no obligation to publicly disclose any such change. This post is solely based on the information available to the dYdX Foundation at the time it was published and should only be read and taken into consideration at the time it was published and on the basis of the circumstances that surrounded it. The dYdX Foundation makes no guarantees of future performance and is under no obligation to undertake any of the activities contemplated herein.

dYdX is a decentralised, disintermediated and permissionless protocol, and is not available in the U.S. or to U.S. persons as well as in other restricted jurisdictions. The dYdX Foundation does not operate or participate in the operation of any component of the dYdX Chain's infrastructure.

Nothing in this website should be used or considered as legal, financial, tax, or any other advice, nor as an instruction or invitation to act in any way by anyone. You should perform your own research and due diligence before engaging in any activity involving crypto-assets due to high volatility and risks of loss.

Depositing into the MegaVault carries risks. Do your own research and make sure to understand the risks before depositing funds. MegaVault returns are not guaranteed and may fluctuate over time depending on multiple factors. MegaVault returns may be negative and you may lose your entire investment.

The dYdX Foundation does not operate or has control over the MegaVault and has not been involved in the development, deployment and operation of  any component of the dYdX Unlimited software (including the MegaVault).

Crypto-assets can be highly volatile and trading crypto-assets involves risk of loss, particularly when using leverage. Investment into crypto-assets may not be regulated and may not be adequate for retail investors. Do your own research and due diligence before engaging in any activity involving crypto-assets.

‍