Finance:Decentralized exchange

From HandWiki
Short description: Type of cryptocurrency exchange
Graph of basic pricing function commonly used by liquidity pool exchanges

Decentralized exchanges (DEX) are a type of cryptocurrency exchange which allows for direct peer-to-peer cryptocurrency transactions to take place online securely and without the need for an intermediary.

Overview

In transactions made through decentralized exchanges, the typical third party entities which would normally oversee the security and transfer of assets (e.g. banks, stockbrokers, online payment gateways, government institutions, etc.) are substituted by a blockchain or distributed ledger. Some common methods of operation include the use of smart contracts or order book relaying, although many other variations are possible and with differing degrees of decentralization.[1][2]

Because traders on a decentralized exchange often do not need to transfer their assets to the exchange before executing a trade, decentralized exchanges reduce the risk of theft from hacking of exchanges,[3][4] but liquidity providers do need to transfer tokens to the decentralized exchange. Decentralized exchanges can also prevent price manipulation or faked trading volume through wash trading, and are more anonymous than exchanges which implement know your customer (KYC) requirements.

There are some signs that decentralized exchanges have been suffering from low trading volumes and market liquidity.[5] The 0x project, a protocol for building decentralized exchanges with interchangeable liquidity attempts to solve this issue.[6]

Drawbacks

Due to a lack of KYC process, and no way to revert a transaction, users are at a loss if they are ever hacked for their passwords or private keys.[7]

Although liquidity pool DEX are the most widely used, they may have some drawbacks. The most common problems of liquidity pool DEXes are price slippage and front running.

Price slippage occurs because of the AMM (Automated Market Makers) nature itself — the larger the deal, the stronger impact it has on the price. For example, if the constant product AMM is in use, every deal must keep the product xy = k constant, where x and y are quantities of two cryptocurrencies (or tokens) in the pool. So the larger is the input amount Δx, the lower is the final ratio y / x that gives an exchange price. The problem is mostly significant for large deals or small liquidity pools.

Front running is a special type of attack in public blockchains when some participant (usually a miner) seeing an upcoming trading transaction puts his own transaction ahead (playing with a transaction fee for example), making the initial transaction less profitable or even reverted.

Ideas of improving front running resistance of the constant product AMM were first discussed in a post by Vitalik Buterin.[8]

Degrees of decentralization

A decentralized exchange can still have centralized components, whereby some control of the exchange is still in the hands of a central authority. A notable example being IDEX blocking New York State users from placing orders on the platform.[9]

In July 2018, decentralized exchange Bancor was reportedly hacked and suffered a loss of $13.5M in assets before freezing funds.[10] In a Tweet, Charlie Lee, the creator of Litecoin spoke out and claimed an exchange cannot be decentralized if it can lose or freeze customer funds.[11]

Operators of decentralized exchanges can face legal consequences from government regulators. One example is the founder of EtherDelta, who in November 2018 settled charges with the U.S. Securities and Exchange Commission over operating an unregistered securities exchange.[12]

Uniswap, which is built upon the Ethereum blockchain, has the largest trading volume of any DEX.[13] It deployed its V3 to the Ethereum mainnet on May 5th 2021.

Reference

[14]

  1. Wong, Joon Ian. "Coinbase bought a “decentralized” crypto exchange. How does that work?" (in en). https://qz.com/1289262/what-are-centralized-and-decentralized-cryptocurrency-exchanges/. 
  2. "This 31-Year-Old Is Trying to Revolutionize Cryptocurrency Trading" (in en). Bloomberg.com. 2017-09-28. https://www.bloomberg.com/news/articles/2017-09-28/upending-digital-currency-market-is-next-act-for-ex-virtu-trader. 
  3. Sandle, Tim (2018-09-09). "Big investment in cryptocurrency startup Altcoin.io". Digital Journal. http://www.digitaljournal.com/business/big-investment-in-cryptocurrency-startup-altcoin-io/article/531556. 
  4. Castellanos, Sara (2018-03-06). "Alexis Ohanian’s VC Firm Invests in Crypto Trading Platform" (in en-US). Wall Street Journal. ISSN 0099-9660. https://www.wsj.com/articles/alexis-ohanians-vc-firm-invests-2-1-million-in-crypto-trading-platform-1520365270. 
  5. Russolillo, Steven; Jeong, Eun-Young (2018-07-16). "Cryptocurrency Exchanges Are Getting Hacked Because It’s Easy" (in en-US). Wall Street Journal. ISSN 0099-9660. https://www.wsj.com/articles/why-cryptocurrency-exchange-hacks-keep-happening-1531656000. 
  6. "0x lets any app be the Craigslist of cryptocurrency" (in en-US). TechCrunch. https://techcrunch.com/2018/07/16/0x/. 
  7. "Bloomberg - Record Crypto Heist Raises the Appeal of a New Type of Exchange". https://www.bloomberg.com/news/articles/2018-01-30/record-crypto-heist-raises-the-appeal-of-a-new-type-of-exchange. 
  8. "Improving front running resistance of x*y=k market makers" (in en-US). https://ethresear.ch/t/improving-front-running-resistance-of-x-y-k-market-makers/1281. 
  9. @Aurora_dao (23 Oct 2018). "#IDEX will begin blocking new orders from users with New York State IP addresses on Thursday, October 25th (6pm UTC). Cancels and withdrawals will remain active.". https://twitter.com/Aurora_dao/status/1054917418621984768. 
  10. Osborne, Charlie. "Another hack rocks cryptocurrency trading: Bancor loses $13.5 million" (in en). https://www.zdnet.com/article/another-hack-rocks-cryptocurrency-trading-bancor-loses-23-5-million/. 
  11. "The crypto world’s latest hack sees Bancor lose $23.5M" (in en-US). https://techcrunch.com/2018/07/10/bancor-loses-23-5m/. 
  12. "SEC, EtherDelta founder settle charges over operating unregistered exchange" (in en-US). https://www.reuters.com/article/us-etherdelta-sec/sec-etherdelta-founder-settle-charges-over-operating-unregistered-exchange-idUSKBN1ND2CC. 
  13. Gerelyn, Terzo (May 25, 2021). "Uniswap Shines on Top-10 CryptoLeaderboard With Double-Digit Gains". Yahoo Finance. https://finance.yahoo.com/news/uniswap-shines-top-10-crypto-145756688.html. 
  14. Joseph Baruch Dolgopolsky(2021-01-28).DApps - Decentralized Applications. Agoranomus. Retrieved 2021-01-28.