August 11, 2023

What are Decentralized Exchanges?

dYdX

Decentralized exchanges (DEXs) have increasingly become hubs for crypto trading. Although centralized crypto exchanges (CEXs) like Coinbase still command a presence with billions in annual trading volume, growth across a few segments of the crypto economy is as fast as DEXs. Over 2020–2021, DEX users soared from 90,000 to 4.28 million, and the average monthly volume growth on DEXs was 15% higher than CEXs. As the trend toward decentralized trading continues to rise, DEXs uniquely cater to the demands of today’s crypto traders.

Since DEX activity has surged in the past few years, more crypto traders want to know what  DEXs are and how they differ from CEXs. From automated market makers to on- and off-chain orderbooks, understanding all the essential details on DEXs is key to exploring these protocols like a pro.

First, let’s start with the basics:

What is a DEX?

DEXs are peer-to-peer (P2P) software protocols on decentralized computer networks called "blockchains" and allow traders to swap cryptocurrencies. People using a DEX connect their private self-custodial crypto wallet to the exchange to trade, so no third-party intermediaries approve transactions. For context, self-custodial crypto wallets give users access to an essential password called the private key, granting users control over their digital assets. Since the transactions on DEXs are P2P, traders always have custody over the cryptocurrencies they swap. DEXs, unlike their centralized counterparts, don't ask for personal data such as a phone number, proof of residence, or email address to start trading virtual coins or tokens. If users have a compatible crypto wallet with virtual funds, they can start trading the available cryptocurrencies on a DEX.

How do Decentralized Crypto Exchanges Work? 

Each DEX uses unique procedures and algorithms to make P2P trading possible, but most rely on blockchain-based programs called smart contracts––which execute software commands without an intermediary. However developers code smart contracts, these programs fulfill their pre-programmed tasks when the conditions are right. For example, if you want to trade Ethereum (ETH) for Chainlink (LINK) on a DEX, the protocol's smart contract automatically recognizes this swap and sends LINK to your associated crypto wallet once you deposit ETH. The determinism and decentralization of smart contracts allow DEXs to operate without central authorities.

Although smart contracts are a fundamental aspect of most DEXs, developers have a few options for designing the software infrastructure for their protocols. Currently, three major types of decentralized crypto exchanges exist in the decentralized finance (DeFi) ecosystem:

  • Orderbook DEXs: These are lists of the current buy and sell prices from active traders for pairs of cryptocurrencies on an exchange. Buy and sell prices are called bid and ask prices in the virtual currency universe. While bid prices are the highest prices people are willing to buy a cryptocurrency, ask prices are the lowest holders want to sell their digital assets. DEXs using the orderbook model record buy and sell orders to match traders at their preferred prices. These exchanges either store orderbook data directly on the blockchain (aka on-chain) or in an off-chain database, such as cloud storage, before finalizing transactions on-chain. 
  • Automated market makers (AMMs): AMMs use a combination of algorithms and programs called liquidity pools (LPs) to facilitate P2P crypto swaps. An LP is a smart contract holding cryptocurrency deposits from users (aka liquidity providers), which traders use to swap between crypto pairs. AMM DEXs incentivize people to lock cryptocurrencies in their LPs by offering a percentage of the total trading fees. To ensure these LPs’ balance remains stable as traders buy and sell digital assets, AMMs use algorithms to automatically adjust the token distribution and cryptocurrency’s market price. 
  • DEX aggregators: DEX aggregators like 1Inch collect data feeds from DeFi protocols and CEXs to help traders find the most attractive market prices for digital assets. Typically, they use advanced algorithms to provide a search engine-like experience in DeFi. Traders using DEX aggregators often analyze various routing options in the crypto ecosystem as they search for the best deal for their target trading pair. 

Centralized Versus Decentralized Crypto Exchanges 

The primary difference between CEXs and DEXs is that the former uses centralized intermediaries and orderbooks to match buyers and sellers. The company running a CEX (e.g., Coinbase or Gemini,) is the liaison verifying trades between the platform's users.

Second, CEXs use custodial wallets to store each user's digital assets rather than letting users swap cryptocurrencies with self-custodial wallets. With a custodial wallet, only the CEX knows the private keys, meaning users who buy crypto with a CEX account only have partial ownership over their crypto assets. It's only after traders send crypto from a CEX to a self-custodial wallet (like MetaMask or Trezor) that they can control their coins and tokens.

Another significant distinction is that CEXs often ask for personal info from account holders called know-your-customer (KYC) data. Typically, someone interested in using a CEX needs to send their home address, email, and a copy of their driver's license (or any other government-issued ID) to start trading cryptocurrency.  In contrast, traders using DEXs only need to link their decentralized wallet to the exchange to start trading.  

A List of Popular Decentralized Exchanges 

From dYdX and DODO to Curve and QuickSwap, crypto traders have plenty of DEXs to choose from in DeFi. And for those new to exploring DEXs, visit crypto price aggregator websites like CoinMarketCap and review the most popular DEXs under the "Exchanges" tab. Here are a few:

  • dYdX: Launched on Ethereum in 2017, dYdX is a leading DEX focused on offering eligible traders low-fee crypto perpetuals trading. Thanks to dYdX's unique on- and off-chain orderbook model, eligible crypto traders enjoy deep crypto liquidity for fast and efficient trades with minimal slippage. dYdX is currently working on a v4 upgrade in the Cosmos ecosystem to provide eligible derivatives traders with even lower fees, faster confirmation speeds, an end-to-end decentralized experience, and greater flexibility when setting up trades. For more details on v4, read the latest news on dYdX's official blog
  • Uniswap: Launched on Ethereum in 2018, Uniswap was the first AMM DEX and remains one of the most actively used DEXs in DeFi. Sometimes, trading activity is so high on Uniswap that it outpaces the daily volume for CEXs like Coinbase. In addition to Ethereum, Uniswap offers decentralized trading services on Ethereum-compatible blockchains like Polygon, Arbitrum, and Optimism.   
  • Curve Finance: Like Uniswap, Curve Finance is an AMM DEX on Ethereum that lets traders swap between digital assets using an Ethereum-based crypto wallet. The primary feature that separates Curve Finance from other AMM DEXs is its focus on low-volatility trading pairs, especially stablecoins and wrapped tokens. By offering trading pairs for cryptocurrencies with almost identical values, Curve reduces the risk traders pay more or less than the quoted price when closing a trade. It now works on multiple Ethereum-compatible blockchains, including Polygon, Arbitrum, and Avalanche.  
  • Sushi: Formerly called SushiSwap, Sushi is a copy of the Uniswap DEX on the Ethereum blockchain. Elusive developers 0xMaki and Chef Nomi introduced Sushi in 2020 and attracted hundreds of Uniswap liquidity providers by offering high rewards paid in the protocol's SUSHI governance token. Sushi's signature product is its AMM DEX, but it also provides DeFi services such as a launchpad for new crypto projects and staking rewards for SUSHI holders. 
  • 1Inch: 1Inch is a DEX aggregator first introduced at a 2019 hackathon event in New York. Developers Sergej Kunz and Anton Bukov released the 1Inch protocol on Ethereum in 2020 and continue to expand the DEX's aggregation sources to help traders find attractive prices in DeFi. Today, 1Inch connects with dozens of DEXs on blockchains (like Ethereum, Arbitrum, and Polygon) and uses its Pathfinder algorithm to scan for the best available rates. 

Experience Low-Fee Decentralized Trading on dYdX 

dYdX currently uses a hybrid on- and off-chain orderbook model to provide eligible traders with a fast, convenient, and low-fee decentralized trading experience. After linking a compatible crypto wallet to dYdX's platform, eligible traders can access dozens of crypto perpetual contracts, slippage tolerance tools, and up to 20x leverage.

For more information on how trading crypto perpetuals differs from buying digital assets on spot exchanges, check out the crypto educational resources on dYdX Academy and eligible traders can start trading on dYdX today.

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.

Leaving site