Bitcoin.com

What is a Decentralized Exchange (DEX)?

A decentralized exchange (DEX) is a type of exchange that specializes in peer-to-peer transactions of cryptocurrencies and digital assets. Unlike centralized exchanges (CEXs), DEXs do not require a trusted third party, or intermediary, to facilitate the exchange of cryptoassets.

Last Updated
Published
Reading Time6 min read
Written By
Neil Author
Neill Velardo
Crypto content specialist since 2017; reviews iGaming platforms firsthand
Reviewed By
Graham Stone Author Image
Graham Stone
What is a DEX?

A decentralized exchange (DEX) is a type of exchange that specializes in peer-to-peer transactions of cryptocurrencies and digital assets. Unlike centralized exchanges (CEXs), DEXs do not require a trusted third party, or intermediary, to facilitate the exchange of cryptoassets.

Use Bitcoin.com's decentralized exchange Verse DEX to safely and securely swap between cryptocurrencies, including cross-chain trading between BTC, BCH, ETH and more.

Overview

Decentralized exchanges (DEXs) exploded in popularity on Ethereum, but have since migrated to every blockchain with general purpose smart contract functionality. DEXs are important to a blockchain’s ecosystem, because they’re the first decentralized App (dApp) that you typically interact with when arriving on a new chain. They are how you swap into and out of cryptoassets. In addition to facilitating exchange between different cryptoassets, many DEXs also have ways to earn cryptoassets without trading.

A core tenet of crypto is the disintermediation of finance, because it increases the economic freedom of individuals everywhere in the world no matter who they may be. DEXs are a core component of decentralized finance (DeFI). Arguably, without high-quality, liquid DEXs, DeFi wouldn’t have experienced the incredible growth it has.

How do DEXs work?

DEXs have existed in crypto in one form or another as early as 2012 to 2014, depending on how you qualify a DEX. Which DEX was the first might be in dispute, however it seems clear that one DEX in particular changed the landscape forever: Uniswap. Uniswap brought with it the first working decentralized automated market maker (AMM). Before AMMs, DEXs struggled with liquidity problems. AMMs made it easier and more attractive to add liquidity.

Before Uniswap came along with a working AMM, trading on a DEX was slow, and cryptoassets on the exchange often traded at a premium to the same cryptoasset on a centralized exchange (CEX). This is because prior to AMMs, DEXs tried to mimic the way centralized exchanges facilitated trades. The problem is that the methods used by CEXs use techniques that require lots of computation with low latency. Translating the same methods to DEXs meant they were much much slower, and still required some centralization. To make matters worse, the poor experience of early DEXs scared away people from providing their funds to be traded against, which prevented those DEXs from gaining traction and gathering the needed liquidity.

AMMs solved this by incentivizing the creation of pools of liquidity, and enabling those pools to be  algorithmically traded. The incentive takes the form of fee sharing. Specifically, people who add liquidity to a DEX receive a share of the fees generated when other participants trade. As for the trading algorithm, it involves a formula that balances the remaining balances of the two assets in a trading pair. The important thing to remember is that two assets aren’t actively paired in real time, rather a program determines the price depending on the remaining amount of both assets.

A graph representation of an equation AMM's use "k = x * y"

What are the advantages of DEXs?

Decentralization brings with it many advantages over centralized counterparts. First,  new cryptoassets almost always appear considerably earlier on DEXs than CEXs. This is because CEXs must manually add cryptoassets to their system. Adding new projects typically entails layers of compliance, testing, and authorization by layers of management. With a DEX, any new token can be automatically added to the exchange without asking anyone.

DEXs do not require Know Your Customer (KYC) or anti-money laundering (AML) measures. The exchange itself does not exist in any one jurisdiction, so there isn’t a regulatory framework that applies to it. This has a number of implications. Firstly, DEXs conserve privacy. You can use DEXs anonymously without having to divulge information about yourself, including financial information such as your account balances. Furthermore, you can start trading immediately at a DEX. There is no lengthy verification process to pass before you can trade.

DEXs can benefit everyone, but they have the most utility in the developing world, where a lack of robust financial infrastructure has hindered traditional financial businesses from accepting many customers. The World Bank estimates that 1 billion people do not have an official proof of identity. These people would be unable to pass the loosest of KYC AML measures, yet with access to the internet they’d be able to trade on a DEX. Explore how decentralized exchanges can empower such individuals on DEX Directory.

Lastly, you don’t have to trade to earn money on a DEX. There are several ways to earn, for example, anyone can provide liquidity on a DEX and earn a portion of fees. Additionally, many DEXs integrate bonus rewards. These are typically paid in the DEX’s governance token.

What are the disadvantages of DEXs?

By far the biggest barrier to using DEXs is the UI/UX difficulty. It is confusing and hard to get cryptoassets into a wallet, and then navigate the user interfaces of most DEXs. There’s a lot of up-front learning involved before you will be able to execute a single trade. This can be made more difficult by the fact that transactions often fail for a variety of reasons, and the support sometimes isn’t particularly helpful.

Because anyone can add a cryptoasset to a DEX, scams are ever present. Any legitimate project will spawn dozens of scam projects with the same name or slightly different names to try and trick you into swapping your cryptoassets. Additionally, since none of these projects need to be vetted beforehand, projects that seem legitimate can turn out to be scams that take your money. In order to participate in this unregulated, wild west space, it’s necessary to do research before trading a new coin. You can read white papers, join Telegram groups and Discords, search X (formerly Twitter), or read Medium blogs and articles.

Every action you take on a DEX requires the usage of gas, which can be expensive. On Ethereum, the most popular blockchain by far, simply swapping on a DEX can cost upwards of $100 dollars (depending on the state of congestion at the time of trade). Other chains have lower fees, though far less activity too. Another drawback is that AMMs, particularly where liquidity is limited, still suffer from slippage. The more you wish to trade, the more likely the price will slip from what you want to pay. Lastly, since DEX activity is all on-chain it is public, programs (bots) can monitor what people are trying to trade, and front-run their orders. This means you end up paying more for your trade than you would have otherwise.

Finally, providing liquidity in a liquidity pool comes with some amount of risk compared to centralized exchanges. This is largely because adding or removing liquidity from a liquidity pool costs some amount of gas, takes longer to execute, and the tools available to actively manage liquidity pools even for modest actions like removing liquidity, require more technical expertise than centralized exchanges. For less sophisticated investors, it is likely more profitable to simply hold your cryptoassets, rather than putting them in a liquidity pool.

Key terms you'll encounter on a DEX

DEXs come with their own vocabulary. Here are the terms you'll run into most, from placing your first swap to providing liquidity.

Trading terms

  • Swap. Exchanging one cryptoasset directly for another — the basic DEX action.
  • Limit order. An instruction to swap only at or better than a price you set, instead of at the current market price.
  • Slippage. The gap between the price you requested and the price you actually got. Most DEXs let you set a slippage tolerance.
  • Route. The path a swap takes when a direct pair is illiquid — e.g. ETH → USDC → NEWCOIN instead of ETH → NEWCOIN.
  • Aggregator. A tool that searches many DEXs at once, splitting and routing your order for the best overall price.
  • Gas. The fee paid to the blockchain for every on-chain action — swapping, depositing, withdrawing — in the chain's native coin.
  • Contract address. A token's unique on-chain identifier (a long hex string). Searching by contract address instead of ticker is the reliable way to avoid scam tokens using a real project's name.
  • AMM (automated market maker). The mechanism most DEXs use: you trade against a pool of liquidity, with price set by a formula based on the ratio of the two assets in the pool, rather than being matched with another trader.

Liquidity terms

  • Liquidity. How easily an asset can be exchanged without moving its price. Deep liquidity means fast, cheap trades; thin liquidity means slippage.
  • Liquidity pool. The pot of funds backing one trading pair (e.g. ETH/USDT). Contributors earn a share of the fees from trades in that pair.
  • Liquidity provider (LP). Someone who deposits assets into a pool. LPs earn fees but take on impermanent-loss risk.
  • LP token. The receipt you get for depositing into a pool. It redeems your assets plus earned fees, and can itself be staked or used as collateral.
  • Impermanent loss (IL). The loss an LP faces when the two pooled assets change in relative value after deposit. It only becomes permanent when you withdraw; stablecoin pairs suffer very little IL.
  • Liquidity mining. Extra rewards a DEX pays on top of trading fees to attract liquidity, usually in its native token — effectively renting liquidity.
  • Staking. Locking a cryptoasset in a protocol to earn yield, usually quoted as APY.
  • Yield farming. Moving assets between pools and protocols to capture these extra rewards while retaining ownership of your assets.
  • TVL (total value locked). The dollar value of all assets deposited in a protocol — a rough at-a-glance health and liquidity indicator.

Start investing safely with the Bitcoin.com Wallet

Over 85M+ wallets created so far. Everything you need to buy, sell, trade, and invest your Bitcoin and cryptocurrency securely.

A screenshot of the Bitcoin.com Wallet app

Scan to Download the Bitcoin.com Wallet

Scan this QR code with your mobile device, you will be automatically redirected to the correct store page.