BTC -0.633%
$22776.3
ETH 0.064%
$1634.89
BNB 1.56%
$306
XRP -0.838%
$0.4021
DOT 0.144%
$6.28
SOL -1.728%
$24.45
DOGE 3.631%
$0.0888
ATOM 2.006%
$13.423
ADA 2.306%
$0.3815
SHIB 1.506%
$0.00001213
FLOW 9.202%
$1.163
MATIC 1.074%
$1.0069
TRX -0.048%
$0.0619

What is a decentralized exchange (DEX)?

What is a decentralized exchange (DEX)?

Main

  • A Decentralized Exchange (DEX) is a crypto-asset trading application in which exchanges and other transactions take place using smart contracts rather than a centralized trading system.
  • The fundamental difference between DEX and centralized exchanges is that they do not store user funds and do not control transactions. Funds are transferred directly from the user’s wallet, which he connects to the platform. Also, decentralized exchanges have no user verification procedure.
  • Decentralized exchanges have become an essential element of the field of decentralized finance (DeFi). As of mid-2022, there are more than 200 DEXs running on dozens of blockchains.

How are decentralized exchanges different from centralized exchanges?

Centralized cryptocurrency exchanges (CEX), such as Coinbase, Bitfinex or Kraken, are organized similarly to traditional stock exchanges. They are run by specific legal entities that are responsible for the platform’s operations, the safety of users’ funds, and compliance with the law.

Therefore, administrations of centralized exchanges have access to customer funds and, if necessary, can block an individual user, a specific transaction or an entire line of business, such as withdrawals. In addition, each new user is required to undergo the procedure of identity verification (KYC).

In turn, decentralized exchanges do not mediate transactions, do not store funds and personal data of their users. Customer identification is most often performed using blockchain addresses and non-custodial wallets connected to the application. Trades and other activities take place via smart contracts.

In addition, in many decentralized exchanges, key decisions are not made by the founding and development teams, but by the community of management token holders through votes in the DEX. However, DEX often has a key developer who creates and develops the smart contracts and application protocol. At the same time, the source code of the key components is open. Decentralized exchanges are the main type of DeFi applications.

When did decentralized exchanges emerge?

Originally, all cryptocurrency trading was centralized. The first decentralized exchange appeared in 2014 and was called NXT Asset Exchange. Then there were similar projects, in particular Counterparty DEX and Block DX, but they did not attract much attention.

Due to the ICO boom in 2017-2018, thousands of new crypto-assets appeared on the market. They were often traded on new DEXs such as EtherDelta, IDEX, DDex and others. Those ran mostly on the Ethereum blockchain and supported ERC-20 tokens. However, the standard problems of DEX at that time were low liquidity, large spreads, low speed, and too high transaction fees.

The real popularity of decentralized exchanges was brought by the technology of the Automated Market Maker (AMM). Instead of a traditional order book, it uses so-called pools of liquidity from asset pairs, and prices are calculated according to a mathematical formula based on their ratio in the pool. This makes it possible to create a decentralized architecture and guarantee onchain transactions via smart contracts, which are comparable to centralized venues in terms of execution speed.

AMM technology was first introduced by the Bancor project. However, the decentralized exchange Uniswap, launched in 2018 on the Ethereum blockchain, has become truly popular. Vitalik Buterin supported the project during its development.

Subsequently, the DEX-AMM model became the mainstream for decentralized exchanges and was copied for applications in other networks, including BNB Chain(PancakeSwap) and Fantom (SpookySwap). AMM-DEX also works in Solana, Cosmos, Terra and other ecosystems.

Liquidity providers to the pools receive commissions earned by the pool for exchanging assets of the respective pair. AMM-DEX has also gradually introduced other features, such as pharming, in which liquidity providers are automatically paid management tokens. These can then be sent to staking, used to participate in DAOs, or simply sold.

As of 2021, a new generation of DEXs is being developed. They, too, use AMM technology, but also allow the exchange of crypto-assets from different blockchains. For example, the Symbiosis Finance protocol implements this function using synthetic (“wrapped”) tokens. Another approach is offered by THORChain’s DEX, which uses pools of native assets in different blockchains for exchanges.

What are the strengths of decentralized exchanges?

Most of the strengths of decentralized exchanges stem from their distributed architecture. Here are a few key advantages (although some of them are also disadvantages):

  • Extremely simple trading interface without stacks and different types of orders;
  • complete anonymity of clients, because no registration, account opening or verification (KYC) with personal data is required to work with DEX;
  • DEX does not store user’s crypto-assets, so neither exchange developers, nor authorities can freeze funds on users’ accounts or put other restrictions;
  • New assets are listed instantly on DEX when the corresponding liquidity pools are replenished;
  • The possibility of passive income for users by contributing assets to the liquidity pools;
  • DEX users can participate in its management through management token farming.

Thus, decentralized trading floors give users full control over their funds, but also full responsibility for their actions.

What are the disadvantages of decentralized exchanges?

There are several negative features and risks of using decentralized exchanges:

  1. In most modern DEXs, crypto-assets can only be exchanged within a single blockchain. Sometimes crypto-assets from different networks are added to DEX via crosschain bridges, but this complicates the trading process.
  2. Non-permanent losses are common on decentralized trading platforms.
  3. Decentralized exchanges have limited trading features, no familiar options such as different types of orders (e.g. Limit or Stop Loss) or leveraged trades. There are no additional tools, such as a ribbon or order book.
  4. Any trades, including those that are wrong or fraud-related, are executed automatically through the blockchain and cannot be reversed or challenged at the help desk. This is often used by cybercriminals to sell stolen cryptocurrency.
  5. The speed of exchange transactions in DEX depends on the speed of transaction confirmation in the blockchain and ranges from a few seconds to a few minutes. Therefore, high-frequency trading in decentralized exchanges is not possible.
  6. Decentralized exchanges typically have less liquidity than centralized venues. Therefore, when buying or selling large positions in low liquidity pairs, users may encounter so-called price slippage, which reduces the benefit to the user;
  7. Commissions for transactions in DEX are higher than in the centralized exchanges. In addition, users also have to pay network commissions.
  8. When exchanging assets and on large volumes, users can fall victim to price manipulation by MEV bots.
  9. Since most of today’s DEX does not have a centralized asset listing system, this is exploited by scammers issuing fake tokens to carry out criminal schemes, including Pump & Dump and Rug Pull.
  10. Because of vulnerabilities in the smart contract code or web interface, DEX is susceptible to hacking and cracking. For example, on June 8, 2022, $5 million in assets were stolen from Osmosis DEX liquidity pools. Such incidents do not threaten the funds of exchange users, but can result in the loss of liquidity providers’ funds.

Are decentralized exchanges legal?

At the moment, decentralized exchanges operate in a “gray zone”, because the legislation does not yet take into account all the nuances of the architecture of these platforms, and regulators have not found effective ways to supervise them.

DEX)

One of the main difficulties related to the regulation of decentralized exchanges is that they are often not associated with specific legal entities and do not belong to any jurisdiction. With some DEXs, even their creators do not disclose their identities, making it difficult to determine who is responsible in the event of any violation.

Nevertheless, attempts to force decentralized exchanges to comply with local laws have been made repeatedly in recent years, especially in the U.S. For example, in November 2018, the SEC accused EtherDelta co-founder Zachary Cobern of running an unregistered national exchange. And in September 2021, the SEC launched an investigation into Uniswap Labs for suspected sales of unregistered securities and failure to comply with anti-money laundering laws.

As of 2022, regulators in the European Union, U.S., Singapore, Hong Kong and several other countries are actively developing future legislation that can locally and internationally control decentralized exchanges and digital asset exchanges.

What are the prospects for DEX?

Decentralized exchanges with AMM technology have earned the recognition of millions of users, attracted tens of billions of dollars in investments, and become an integral part of DeFi and the cryptocurrency market in general.

In addition, a number of centralized exchanges have launched their own DEX or implemented their individual features. In September 2020, the largest cryptocurrency exchange Binance launched Binance Liquid Swap service based on AMM technology. This service allows users not only to exchange several dozen cryptocurrencies, but also to place their assets in liquidity pools and receive a share of trading commissions.

In the future, we should expect decentralized exchanges to expand functionality for traders and improve interoperability for easy, cheap and fast exchange of assets across different blockchains.

What else to read?

What is DeFi 2.0?

What is Lido?

What is MetaMask?

What is Aave?

What is a control token?