Decentralized exchange

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
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[edit]

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[edit]

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[edit]

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[edit]

[14]

  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. ^ @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.
  10. ^ Osborne, Charlie. "Another hack rocks cryptocurrency trading: Bancor loses $13.5 million". ZDNet. Retrieved 2018-12-13.
  11. ^ "The crypto world's latest hack sees Bancor lose $23.5M". TechCrunch. Retrieved 2018-12-13.
  12. ^ "SEC, EtherDelta founder settle charges over operating unregistered exchange". Reuters. Retrieved 2018-06-05.
  13. ^ Gerelyn, Terzo (May 25, 2021). "Uniswap Shines on Top-10 CryptoLeaderboard With Double-Digit Gains". Yahoo Finance.
  14. ^ Joseph Baruch Dolgopolsky(2021-01-28).DApps - Decentralized Applications. Agoranomus. Retrieved 2021-01-28.