Decentralized Exchange (DEX): What Is It?

decentralized exchange

You’re undoubtedly familiar with how cryptocurrency exchanges work. Create a secure password, validate your account, and register using your email before you can begin trading cryptocurrencies.

Decentralized Exchanges are similar to that, but without the registration trouble. Cryptocurrency cannot often be deposited or withdrawn. With little (if any!) involvement from a third party, the trade takes place directly between the wallets of two individuals.

Decentralized exchanges can be more difficult to navigate and may not always offer the assets you’re looking for. However, if the technology and interest in it advance, these could very well become crucial elements in the world of cryptocurrencies.

Exchanges have been crucial in connecting cryptocurrency buyers and sellers from Bitcoin’s infancy. We would have considerably less liquidity and no means to agree on the fair value of assets if these forums didn’t draw a large international user base.

Centralized players have historically controlled this market. However, an increasing variety of tools for decentralized trading have evolved as a result of the quickly evolving stack of technologies that are currently available.

In this post, we’ll go into decentralized exchanges (DEXs), trading platforms without the need for middlemen.

An explanation for decentralized exchanges

Any peer-to-peer exchange might theoretically count as a decentralized trade. However, the platform that mimics the features of centralized exchanges is the main topic of this paper. Their use of a blockchain for their backend is the primary distinction. You don’t need to trust the exchange as much as you do with centralized services, if at all, because no one is in charge of your money.

How a centralized exchange works

With your typical centralized exchange, you deposit your money – either fiat (via bank transfer or credit/debit card) or cryptocurrency. When you deposit crypto, you give up control of it. Not from a usability standpoint, as you can still trade it or withdraw it, but from a technical standpoint: you cannot spend it on the blockchain.

You don’t own the private keys to the funds, which means that when you withdraw, you ask the exchange to sign a transaction on your behalf. When you’re trading, transactions don’t occur on-chain – instead, the exchange allocates balances to users in its own database.

The general workflow is incredibly streamlined because the slow speeds of blockchains don’t impede trading, and everything occurs in a single entity’s system. Cryptocurrencies are easier to buy and sell, and you have more tools available to you.

Check Out  How To Put Your Money On Autopilot

This does come at the cost of independence: you need to trust the exchange with your money. As a result, you expose yourself to some counterparty risk. What if the team runs off with your hard-earned BTC? What if a hacker cripples the system and drains the funds?

For many users, this is an acceptable level of risk. They simply stick to reputable exchanges with strong track records and precautions that mitigate data breaches.

How a decentralized exchange works

DEXs are similar to their centralized counterparts in some ways but significantly different in others. Let’s first note that there are a few different types of decentralized exchanges available to users. The common theme among them is that orders are executed on-chain (with smart contracts) and that users do not sacrifice custody of their funds at any point.

Some work has been done on cross-chain DEXs, but the most popular ones revolve around assets on a single blockchain.

DIFFERENCE BETWEEN CENTRALIZED & DECENTRALIZED

On-chain order books

In some decentralized exchanges, everything is done on-chain (we’ll talk about hybridized approaches shortly). Every order (as well as alteration and cancellation) is written to the blockchain. This is arguably the most transparent approach, as you’re not trusting a third party to relay the orders to you, and there’s no way to obfuscate them. 

Unfortunately, it’s also the most impractical. Since you’re asking every node on the network to record the order forever, you end up paying a fee. You need to wait until a miner adds your message to the blockchain, meaning the experience can be cumbersome, too. 

Some identify front running as a flaw in this model. Front running occurs in markets when an insider is aware of a pending transaction and uses that information to place a trade before the transaction is processed. The front runner, therefore, benefits from information not known to the public. Generally speaking, this is illegal. 

Of course, if everything is published on a global ledger, there’s no opportunity to front run in the traditional sense. That said, a different kind of attack can be deployed: one where a miner sees the order before it’s confirmed, and ensures that their own order gets added to the blockchain first.

Off-chain order books

Off-chain order book DEXs are still decentralized in some regards, but they’re admittedly more centralized than the previous entry. Instead of every order being posted to the blockchain, they’re hosted somewhere. 

Check Out  Understand The Psychology Of Money Once-And-For-All.

Where? That depends. You could have a centralized entity completely in charge of the order book. If that entity is malicious, then they could game the markets to an extent (i.e., by front running or misrepresenting orders). However, you would still benefit from non-custodial storage.

The 0x protocol for ERC-20 and other tokens deployed on the Ethereum blockchain is a good example of this. Rather than act as a singular DEX, it provides a framework for parties known as “relayers” to manage off-chain order books. Leveraging 0x smart contracts and some other tools, hosts can tap into a combined liquidity pool and relay orders between users. The trade is only executed on-chain once the parties are matched.

These approaches are superior from a usability perspective than those that rely on on-chain order books. They don’t face the same constraints in terms of speed, as they don’t use the blockchain as much. Still, the trade must be settled on it, so the off-chain order book model is still inferior to centralized exchanges in terms of speed.

Automated Market Makers (AMM)

Fed up of reading the term “order book?” Great, because the Automated Market Maker (AMM) model does away with the idea altogether. It doesn’t require makers or takers, just users, game theory, and a bit of formulaic black magic. 

The specifics of AMMs depend on the implementation – generally, they string together a bunch of smart contracts and offer clever incentives to ensure user participation. The available AMM-based DEXs today tend to be relatively user-friendly, integrating with wallets like MetaMask or Trust Wallet. As with other forms of DEXs, though, an on-chain transaction must be made to settle trades.

Projects working on this front include the aforementioned Uniswap and Kyber Network (which taps into the Bancor protocol), both facilitating the trade of ERC-20 tokens.

Pros and cons of DEXs

We’ve touched on some of the advantages and drawbacks of DEXs in broad strokes in the previous sections. Let’s delve into them a bit more.

Pros of DEXs

No KYC

KYC/AML (Know Your Customer and Anti-Money Laundering) compliance is the norm for many exchanges. For regulatory reasons, individuals must often submit identity documentation and proof of address.

This is a privacy concern for some and an accessibility concern for others. What if you don’t have valid documents on hand? What if the information is somehow leaked? Since DEXs are permissionless, no one checks your identity. All you need is a cryptocurrency wallet.

Check Out  The American Dream: Top 10 US Cities Where It’s Easiest To Get Rich.

However, there are some legal requirements when DEXs are partially run by a central authority. In some cases, if the order book is centralized, the host must remain compliant.

No counterparty risk

The primary appeal of decentralized cryptocurrency exchanges is that they don’t hold customers’ funds. As such, even catastrophic breaches like the 2014 Mt. The Gox hack won’t put users’ funds at risk or expose any sensitive personal information.

Unlisted tokens

Tokens that aren’t listed on centralized exchanges can still be traded freely on DEXs, provided there’s supply and demand.

Cons of DEXs

Usability

Realistically, DEXs aren’t nearly as user-friendly as traditional exchanges. Centralized platforms offer real-time trades that are unaffected by block times. For newcomers unfamiliar with non-custodial cryptocurrency wallets, CEXs provide a more forgiving experience. If you forget your password, you can simply reset it. If you lose your seed phrase, however, your funds are irretrievably lost in cyberspace.

Trading volumes and liquidity

The volume traded on CEXs still dwarfs that of DEXs. Perhaps more importantly, CEXs tend to have greater liquidity, too. Liquidity is a measure of how easily you can buy or sell assets at a reasonable price. In a highly liquid market, bids and asks have little difference in price, signifying high competition between buyers and sellers. In an illiquid market, you’ll have a more difficult time finding someone that wants to trade the asset for a reasonable price.

DEXs are still relatively niche, so there isn’t always supply or demand for the crypto assets you wish to trade. You may not be able to find the trading pairs you want to use, and if you do, assets might not trade at a fair price. 

Fees

Fees aren’t always higher on DEXs, but they can be, particularly when the network is congested or if you’re using an on-chain order book.

Final Thoughts

Over time, a number of decentralized exchanges have appeared, each improving on earlier initiatives to improve user experience and create more potent trading venues. In the end, the concept appears to be closely related to the philosophy of self-sovereignty: just like with cryptocurrencies, consumers don’t have to have faith in a third party.

Ethereum-based DEXs have experienced a sharp increase in usage since the emergence of DeFi. If the trend continues, the entire industry will probably experience a rise in technological innovation.

Leave a Reply

Your email address will not be published. Required fields are marked *