Decentralized exchange

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.[1]

Ledger login on Switcheo Exchange

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 for 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 users do not need to transfer their assets to the exchange, decentralized exchanges reduce the risk of theft from hacking of exchanges.[3][4] 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 is 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 the post of Vitalik Buterin.[8] A possible solution is to allow operations that are not completed immediately, but last for some period (e.g. 5 minutes), during which the liquidity is gradually moving to and from the pool without price bouncing. This removes the front running problem, as front runners cannot benefit from long operations. This also helps against the price slippage as arbitrageurs and other traders will be able to act in parallel, making counter-deals that compensate each other.[9]

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.[10]

In July 2018, decentralized exchange Bancor was reportedly hacked and suffered a loss of $13.5M in assets before freezing funds.[11] 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.[12]

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.[13]

Reference

  1. Wong, Joon Ian. "Coinbase bought a "decentralized" crypto exchange. How does that work?". Quartz. Retrieved 2020-12-03.
  2. "This 31-Year-Old Is Trying to Revolutionize Cryptocurrency Trading". Bloomberg.com. 2017-09-28. Retrieved 2020-12-03.
  3. Sandle, Tim (2018-09-09). "Big investment in cryptocurrency startup Altcoin.io". Digital Journal. Retrieved 2018-09-11.
  4. Castellanos, Sara (2018-03-06). "Alexis Ohanian's VC Firm Invests in Crypto Trading Platform". Wall Street Journal. ISSN 0099-9660. Retrieved 2018-09-11.
  5. Russolillo, Steven; Jeong, Eun-Young (2018-07-16). "Cryptocurrency Exchanges Are Getting Hacked Because It's Easy". Wall Street Journal. ISSN 0099-9660. Retrieved 2018-09-11.
  6. "0x lets any app be the Craigslist of cryptocurrency". TechCrunch. Retrieved 2018-11-24.
  7. "Bloomberg - Record Crypto Heist Raises the Appeal of a New Type of Exchange". www.bloomberg.com. Retrieved 2018-11-17.
  8. "Improving front running resistance of x*y=k market makers". Ethresear.ch. Retrieved 2021-01-27.
  9. "Liquifi: a New Liquidity Pool DEX that is a Golden Cut for the Price Slippage and Front-running Problems". Medium.com. Retrieved 2021-01-27.
  10. @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" (Tweet) via Twitter.
  11. Osborne, Charlie. "Another hack rocks cryptocurrency trading: Bancor loses $13.5 million". ZDNet. Retrieved 2018-12-13.
  12. "The crypto world's latest hack sees Bancor lose $23.5M". TechCrunch. Retrieved 2018-12-13.
  13. "SEC, EtherDelta founder settle charges over operating unregistered exchange". Reuters. Retrieved 2018-06-05.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.