{"id":8115,"date":"2022-09-27T07:09:06","date_gmt":"2022-09-27T07:09:06","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=8115"},"modified":"2022-09-27T07:09:06","modified_gmt":"2022-09-27T07:09:06","slug":"history-and-types-of-decentralised-exchanges","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/09\/27\/history-and-types-of-decentralised-exchanges\/","title":{"rendered":"History and Types of decentralised exchanges"},"content":{"rendered":"\n<p>After its launch in 2013, the Ethereum smart contract blockchain emerged as a useful platform to develop and deploy so-called decentralized applications or dApps as the concept of open applications operating atop blockchain took hold.<\/p>\n\n\n\n<p>Among the early use cases for this was the idea of a crypto exchange that would allow users to trade in a more decentralized manner.<\/p>\n\n\n\n<p>At the time, the only way to buy and sell crypto was to do it at exchanges, which were managed and operated by commercial companies (and, at first, wealthy individuals). This required users to deposit their funds at the exchange, placing orders to exchange their coins and tokens for those of other users. Only when exchanges were finalised were users able to withdraw back their coins to their own wallets.<\/p>\n\n\n\n<p>However, the infamous\u00a0hack of Mt Gox\u00a0in 2013 \u2013 then the largest Bitcoin exchange in the world \u2013 exposed the biggest risk of a traditional crypto exchange or centralised exchange (CEX). If hacked or compromised, all users at the exchange risk losing their funds, just as thousands of users did at Mt Gox. This was because you have to give over custody of your funds when you deposit assets at a CEX.<\/p>\n\n\n\n<p>Unsurprisingly, the very first type of DEX to launch looked very similar to a regular exchange, except that it did not require users to hand over custody of their digital assets.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. The first generation: Non-Custodial Order Books<\/h3>\n\n\n\n<p>Around 2016, DEX platforms like Bancor, IDEX and EtherDelta made waves in crypto by introducing a way to trade crypto peer-to-peer while maintaining control over the digital assets intended to trade.<\/p>\n\n\n\n<p>The term \u201cnon-custodial\u201d was used because at any time, traders would be able to access the funds placed at this DEX, if they weren\u2019t already exchanged. In other words, crypto actually remained in users\u2019 wallets until trade conditions on the DEX were made and executed by smart contracts.<\/p>\n\n\n\n<p>These early DEXs worked almost exactly like a traditional CEX in that the platform was made up of an order book. An order book simply contains all of the orders placed by users, whether it is to buy or sell crypto. Thus, an order book has two sides. The buy side (also called \u201cbid\u201d since buyers are bidding for an asset) and the sell side (also called \u201cask\u201d since sellers are asking for a price).<\/p>\n\n\n\n<p>Users wishing to sell their assets would either have to make a sell order on the DEX or take an existing buy order. Conversely, users who wanted to buy an asset would have to make a buy order on the DEX or take an existing sell order. Just like on a CEX.<\/p>\n\n\n\n<p>These first-generation DEXs proved to be popular but presented several issues:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">a. High cost, low speed<\/h4>\n\n\n\n<p>As the majority of early DEXs launched on Ethereum, it quickly became apparent that Ethereum\u2019s transactional capacity simply wasn\u2019t enough to cope with rising demand.<\/p>\n\n\n\n<p>Each peer-to-peer trade on DEXs required at least one transaction, which needed to be submitted to the network for confirmation like any other blockchain transaction. These competed with all the other transactions on Ethereum and other dApp transactions.<\/p>\n\n\n\n<p>As the Ethereum network became congested, mining fees for transactions soared, and trading on DEXs became unreliable.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">b. Low liquidity<\/h4>\n\n\n\n<p>They weren\u2019t enough users on the DEX buying or selling many types of coins, so it was significantly harder to buy or sell compared to a CEX. Orderbooks were often empty or quickly cleared. Also, because the demand usually outstripped supply, buy\/sell rates weren\u2019t very good either.<\/p>\n\n\n\n<p>Orders that were available were also small in size, unlike the larger sizes typically seen on CEXs. This led to high slippage (sudden reductions in rates leading to losses) for DEX traders.<\/p>\n\n\n\n<p>This liquidity problem \u2013 the lack of ease with which crypto could be traded \u2013 led to the next generation of DEXs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. The second generation: Automated Market Makers (AMM) and Liquidity Pools<\/h3>\n\n\n\n<p>Order book DEXs never quite took off because of the Catch 22 liquidity issue. There wasn\u2019t enough liquidity because there weren\u2019t enough users. And there weren\u2019t enough users because there wasn\u2019t enough liquidity.<\/p>\n\n\n\n<p>Users didn\u2019t want to lock up their assets on order books at DEXs where they were few takers, certainly not when they would almost certainly find willing takers on a CEX!<\/p>\n\n\n\n<p>So DEXs had to find a way to convince users to provide liquidity, that is, to provide their assets on a DEX. And they did so by providing additional incentives or rewards for doing so.<\/p>\n\n\n\n<p>Newer DEX platforms like Uniswap and SushiSwap popularised what is called a liquidity pool. Users participating in this pool would be called liquidity providers as they simply provided their crypto to the pool.<\/p>\n\n\n\n<p>All the contributed crypto \u2013 which came in pairs, e.g. ETH and USDT \u2013 combined as one single ETH\/USD liquidity source, allowing other users to connect directly to the DEX to buy or sell Ethereum (ETH) against Tether (USDT) with that liquidity pool.<\/p>\n\n\n\n<p>At the heart of these DEXs were smart contracts that:<\/p>\n\n\n\n<ul><li>Automated the process of providing liquidity,<\/li><li>determined what the market rate for the swap would be, and<\/li><li>Completing the exchanges from users swapping with the liquidity pool<\/li><\/ul>\n\n\n\n<p>In other words, they automatically made the markets, hence why DEXs like Uniswap or SushiSwap are sometimes called Automated Market Makers or AMMs.&nbsp;<\/p>\n\n\n\n<p>In return for providing liquidity, liquidity providers would get a share of commissions charged by the AMM on individuals swapping crypto there. This proved to be a relatively secure and reliable means of passive income that led to the growth of AMM type DEXs from 2020 onwards.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. The current iteration &#8211; DEX Aggregators<\/h3>\n\n\n\n<p>AMM DEXs continue to grow in popularity to this day and have been credited with the rising use of decentralised finance (DEFI) products and services, of which DEX trading is one.<\/p>\n\n\n\n<p>But with crypto markets peaking in 2021, other smart contract platforms jostled with Ethereum for a share in the DEX space. While Ethereum-based DEXs still command the lion\u2019s share of DEX trading volume, other DEXs on challenger platforms are tempting users with cheaper fees and faster transactions (being on newer, less crowded networks).<\/p>\n\n\n\n<p>Some examples are the PancakeSwap DEX based on the Binance Smart Chain (BSC) network and the AnySwap DEX based on the Polygon network. In fact, there are scores of competing blockchain networks vying for a share of the dApp ecosystem.<\/p>\n\n\n\n<p>Owing to this, the DEX ecosystem is somewhat splintered across multiple DEX platforms on multiple blockchain networks. While other networks are working to create \u201cbridges\u201d between these, they can be quite complex for the regular user.<\/p>\n\n\n\n<p>As such, DEX traders are faced with an increasingly complicated process of manually connecting to different blockchain networks and different DEXs to find the right place to trade or the right rates to trade at.<\/p>\n\n\n\n<p>Enter the DEX aggregators: platforms or dApps which aren\u2019t themselves DEXs but tools that put together many existing DEXs in one place so that their users can trade across different DEXs while connecting to a single app. These aggregators also connect users to different wallets and different networks, making them a convenient way to use DEXs without actually needing to manage multiple accounts.<\/p>\n\n\n\n<p>In fact, many popular DEX aggregators like 1inch and Zerion even have their own custom protocols that automatically search their network of DEXs to find the best swap rates for their users, while using the most efficient algorithms for lower fees. Some DEX aggregators claim this can result in even better rates when using their platform to trade from a particular DEX, than when trading directly at the DEX itself.<\/p>\n\n\n\n<p>The key result for users is that they gain convenient access to any and all liquidity from all the major DEX networks from a single point.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After its launch in 2013, the Ethereum smart contract blockchain emerged as a useful platform to develop and deploy so-called decentralized applications or dApps as the concept of open applications operating atop blockchain took hold. Among the early use cases for this was the idea of a crypto exchange that would allow users to trade [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[342],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/8115"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=8115"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/8115\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=8115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=8115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=8115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}