What is a Decentralized Exchange?
Before we dive in, in order to understand DEXs, it’s important to understand DeFi. Here’s a quick refresher: DeFi is a set of protocols (apps) that utilize the blockchain to replicate traditional banking services in a programmatic way. Rather than an institution making decisions on who deserves these services, the decisions are built into code.
A Decentralized Exchange (aka DEX) is a blockchain application that allows you to trade your coins (just like you would on Coinbase) without the need for a middleman, all thanks to smart contracts.
Smart contracts are coded programs that allow two people to enter into an agreement, without needing to know each other, and trust that the agreement will take place. They are like legal agreements but written in code. They only execute if both parties do what they agreed to. If either try to do something fishy, it won’t allow them to or returns the money back to the other person.
In a scenario where you trade on Coinbase, Binance, or Robinhood, you trust that the platform will make good on your trade and fulfill the price. With DEXs, this happens with code. The code cannot be changed (it’s immutable), and can be audited by anyone (it’s open source).
Decentralized Exchanges are beneficial for a number of reasons including:
Decentralized Exchanges do also have some limitations. These include:
DEXs can be less beginner-friendly, as trades cannot be reversed, and they don’t have support teams to help you in the event of a problem. DEXs let you trade any coin in existence on that chain, without gating access to specific ones, so make sure you know what you are buying.
In order to use a Decentralized Exchanges, you’ll need to have funded a non-custodial wallet like Rainbow or Metamask. You’ll use this to log in to the site you choose to use (like Uniswap or Sushiswap) and make trades with it.
Keep in mind that Decentralized Exchanges are limited to the blockchains they exist on. For example, a DEX on Ethereum (like Uniswap) will only allow you to trade assets that exist on Ethereum, and not on Solana, Avalanche, Fantom, or other blockchains. If you want to trade between cryptos on different blockchains, you would have to use a bridge.
You don’t need to sign up, you’ll just have to use your own wallet.
To start, you will need to:
Serum: a permissionless protocol for decentralized exchanges that brings unprecedented speed and low transaction costs to DeFi.
Trader Joe: a one-stop decentralized trading platform on the Avalanche network.
Terraswap: a decentralized protocol for seamless access to asset liquidity on Terra.
Many DEXs use the Automated Market Maker (AMM) model instead of the traditional 'order book' model.
This is a much more complex topic, so to keep things simple, we will discuss it at another time.