top of page

Investor Knowledge

Decentralized Exchanges

 

 

Definition

A decentralized exchange (or DEX) is a peer-to-peer marketplace where transactions occur directly between crypto traders. DEXs fulfill one of crypto’s core possibilities: fostering financial transactions that aren’t officiated by banks, brokers, or any other intermediary. Many popular DEXs, run on the Ethereum blockchain.

What is a DEX?

Decentralized crypto exchanges (DEXs) are blockchain-based apps that coordinate large-scale trading of crypto assets between many users. They do that entirely through automated algorithms, instead of the conventional approach of acting as financial intermediary between buyers and sellers.  The algorithms that DEXs use are examples of smart contracts. They are pieces of code written on top of blockchain networks like Ethereum that trigger various outputs when given certain inputs.

The idea behind a DEX is "disintermediation," which means removing middlemen to allow regular people to do business directly with each another. A DEX doesn't offer custody of users’ crypto assets. Instead, users directly hold all their assets in their own wallets at all times.

How do DEXs work?

Unlike centralized exchanges, DEXs don’t allow for exchanges between fiat and crypto — instead, they exclusively trade cryptocurrency tokens for other cryptocurrency tokens. Via a centralized exchange (or CEX), you can trade fiat for crypto (and vice versa) or crypto-crypto pairs — say some of your bitcoin for ETH. You can also often make more advanced moves, like margin trades or setting limit orders. But all of these transactions are handled by the exchange itself via an “order book” that establishes the price for a particular cryptocurrency based on current buy and sell orders — the same method used by stock exchanges like Nasdaq. 

Decentralized exchanges, on the other hand, are simply a set of smart contracts. They establish the prices of various cryptocurrencies against each algorithmically and use “liquidity pools” — in which investors lock funds in exchange for interest-like rewards — to facilitate trades. 

While transactions on a centralized exchange are recorded on that exchange’s internal database, DEX transactions are settled directly on the blockchain.

DEXs are usually built on open-source code, meaning that anyone interested can see exactly how they work. That also means that developers can adapt existing code to create new competing projects.

What are potential benefits of using a DEX?
 

Variety: If you’re interested in finding a hot token in its infancy, DeFi is the place to be. DEXs offer a virtually limitless range of tokens, from the well-known to the weird and totally random. That’s because anyone can mint an Ethereum-based token and create a liquidity pool for it, so you’ll find a greater array of projects, both vetted and unvetted. (Buyer definitely beware!)


Hacking risks can be reduced: Because all of the funds in a DEX trade are stored on the traders’ own wallets, they are theoretically less susceptible to a hack. (Relatedly, DEXs also reduce what is known as “counterparty risk,” which is the likelihood that one of the involved parties — including potentially the central authority in a non-DeFi transaction — will default.)  

 

Anonymity: No personal information is required to use most popular DEXs.

Utility in the developing world: The peer-to-peer lending, speedy transactions, and anonymity made possible by DEXs have made them increasingly popular in developing economies where solid banking infrastructure might not be available. Anyone with a smartphone and an internet connection can trade via a DEX. 

What are some potential downsides?
 

Trickier user interfaces Navigating decentralized exchanges requires some specialized knowledge and the interfaces aren’t always easy — be prepared to do a lot of research and don’t expect the DEX itself to offer much handholding. You’ll generally have to look offsite for a walk-through or explainer. Caution is required because it’s possible to make an unfixable error, like sending coins to the wrong wallet. Another common issue is known as “impermanent loss,” which can result from pairing a more volatile cryptocurrency with a less volatile one in a liquidity pool. (The main takeaway here? Do your own research.)
 

 Smart contract vulnerability Any DeFi protocol is only as secure as the smart contracts that power it — and code can have exploitable bugs (despite lengthy testing) that can result in the loss of your tokens. And while a smart contract might work as intended under normal circumstances, not all rare events, human factors, and hacks can be anticipated by developers. 

Riskier coins With the unvetted, vast array of tokens available on most DEXs, there are also a greater number of scams and schemes to be wary of. A token that’s on a hot streak could suddenly be “rug pulled,” when its creator mints a bunch of new tokens, overwhelming the liquidity pool and tanking the value of the coin. Before you buy a new-to-you cryptocurrency or experiment with a new protocol it’s important to learn as much as you can — read white papers, visit developer Twitter feeds or Discord channels,  and look for audits of any particular project you’re interested in.

bottom of page