{"id":12148,"date":"2020-11-04T14:24:46","date_gmt":"2020-11-04T08:54:46","guid":{"rendered":"https:\/\/bitcoinik.com\/?st-import=1e74392ae89a146e61e93a25a66bacf1"},"modified":"2020-11-04T14:24:46","modified_gmt":"2020-11-04T08:54:46","slug":"what-is-an-automated-market-maker-amm","status":"publish","type":"post","link":"https:\/\/bitcoinik.com\/?p=12148","title":{"rendered":"What is an Automated Market Maker (AMM)?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you trade digital assets, you do it on the basis of trust with your fellow trader. Do you remember that guy who sold his pizza for 10,000 Bitcoins? Before transferring Bitcoins, he had to ensure that the person he is sending BTC will not run away with his coins.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One way to perform such trading is through Bitcoin forums and IRC channels where you trust the reputation scores of an individual engaged in the trade. Usually, such trading happens in <a href=\"http:\/\/bitcoinik.com\/best-peer-to-peer-p2p-bitcoin-exchanges\/\" class=\"rank-math-link\">P2P trading platforms<\/a>. But these platforms also have some risks. There are chances that the individual may cheat after earning trust.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With the invention of exchanges like Coinbase and Mt Gox, the need for trusting reputation scores disappeared. An individual trader can deposit on a centralized account and trade with one another. But, such trading involves custodial risks as it happened with Mt Gox.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When the number of digital assets increased, these <a href=\"http:\/\/bitcoinik.com\/10-best-cryptocurrency-exchanges-in-2020\/\" class=\"rank-math-link\">centralized exchanges<\/a> became gate-keepers of liquidity. The digital assets will increase in the form of NFTs, personal tokens, and other representations of value on-chain. In such a case it is quintessential to have an infrastructure that will enable the exchange of one asset with another without the involvement of any third-party. It is where the automated market makers and liquidity pools come into the scenario.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, let\u2019s discuss more on automated market makers, it\u2019s working, and much more.&nbsp;<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_91 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/bitcoinik.com\/?p=12148\/#What_is_an_Automated_Market_Maker_AMM\" >What is an Automated Market Maker (AMM)?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/bitcoinik.com\/?p=12148\/#How_does_it_work\" >How does it work?&nbsp;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/bitcoinik.com\/?p=12148\/#Liquidity_Pool\" >Liquidity Pool<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/bitcoinik.com\/?p=12148\/#Impermanent_Loss\" >Impermanent Loss<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/bitcoinik.com\/?p=12148\/#Advantages_of_Automated_Market_Maker\" >Advantages of Automated Market Maker<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/bitcoinik.com\/?p=12148\/#Limitations_of_Automated_Market_Maker\" >Limitations of Automated Market Maker<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/bitcoinik.com\/?p=12148\/#Final_Word\" >Final Word<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_an_Automated_Market_Maker_AMM\"><\/span><strong>What is an Automated Market Maker (AMM)?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Automated Market Makers are a class of <a href=\"http:\/\/bitcoinik.com\/9-best-decentralized-exchanges-dex-of-2020\/\" class=\"rank-math-link\">decentralized exchange<\/a> protocols that rely on mathematical formula to set a price for a token. The formula varies with each protocol. For instance, Balancer uses x*y=k, where x is the amount of one token in the liquidity pool, and y is the amount of the other. In this formula, k is a constant value, which means the pool\u2019s total liquidity will always remain constant.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Different AMMs use different formulas, but they have one similarity which is that all of them determine the prices algorithmically. AMMs use <a href=\"http:\/\/bitcoinik.com\/what-are-smart-contracts\/\" class=\"rank-math-link\">smart contracts<\/a> as a maker in an exchange transaction. The concept of AMM is similar to the services of ShapeShift and Changelly. The only difference is that the company\u2019s reserves are replaced with liquidity pools. The first AMM was developed in 2017. It was Bancor and today we have various other market makers like Uniswap, Curve, Kyber, and Balancer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_does_it_work\"><\/span><strong>How does it work?&nbsp;<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An automated market maker works similarly to the order book exchange. AMM doesn\u2019t require you to trust your fellow trader because all you have to do is interact with a smart contract that \u201cmakes\u201d the market for you.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can consider an automated market maker as a peer-to-contract transaction. The trade is usually carried out between the user and the contract. The price for an asset is determined by a formula. Although there is no need for any counterparties, there should be someone to create the market.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Liquidity_Pool\"><\/span><strong>Liquidity Pool<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are liquidity providers who provide liquidity to the pool. A liquidity pool is a big pile of funds that traders can trade. When LPs provide liquidity to the pool, they earn rewards from the trades that happen in their pool. The protocol will decide the rewards earned by the LPs.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main reason to provide liquidity to the pool is the slippage that occurs in each trade. The formula used to calculate the price represents a parabola. It means the shape of a parabola depicts that the slippage will be low for small orders and for large orders, the slippage rises exponentially.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The slippage issues will differ for various AMM designs. For example, you want to buy all the ETH in the ETH\/DAI pool on Uniswap. In such a case, you should pay a higher premium for each additional ether. The formula used here is x*y=z. If one of the terms (x or y) is zero, the equation will not make sense. It means if there is zero ETH or DAI in the pool the equation will not work and you will not be able to buy it from the pool.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1630\/1*dtUhi97y2gNDA-EJU6n9ng.png\" alt=\"automated market maker AMM\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">While providing liquidity to the pool, you need to consider the impermanent loss that occurred in the trade as well. Let\u2019s understand more about impermanent losses.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Impermanent_Loss\"><\/span><strong>Impermanent Loss<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Suppose you deposit some amount of tokens in the pool and its price ratio changes after you deposit them, then Impermanent loss occurs. The amount of loss depends on the size of the change that occurred. It means, if the change in price is large, then the loss will also be greater. But, if the price ratio is small, then the loss will also be negligible. So, Automated Market Makers work better for stablecoins or wrapped coins.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Impermanence presumes that if the assets revert to the same prices as it was during the original deposit, the losses can be restored. Conversely, if you withdraw your funds at a different price ratio than when you deposited them, the losses remain permanent.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Advantages_of_Automated_Market_Maker\"><\/span><strong>Advantages of Automated Market Maker<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>AMMs are decentralized as they do not involve gatekeepers excluding projects or users and eliminate the need for any central authority.&nbsp;<\/li><li>The AMM protocols are permissionless as they do not require users to create specific accounts or perform any KYC checks. The user only requires a wallet address to interact with the protocols.&nbsp;<\/li><li>The AMM Decentralized Exchanges do not involve any listing fees or admission criteria, as anyone can create a liquidity pool for a token.&nbsp;<\/li><li>These DEXs have user-friendly interfaces.&nbsp;<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Limitations_of_Automated_Market_Maker\"><\/span><strong>Limitations of Automated Market Maker<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>AMMs are exposed to hacks and vulnerabilities, where the users may lose their money due to complex smart contract interactions.&nbsp;<\/li><li>Traders publicize their strategy to the world. It allows the front-runners to get their orders first and use them to advantage the legitimate users.&nbsp;<\/li><li>Arbitrage traders are quintessential in AMM to correct the pricing of assets, but it results in an impermanent loss on many platforms.&nbsp;<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Final_Word\"><\/span><strong>Final Word<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Automated Market Makers (AMM) are the basic requirement of the DeFi space. Anyone can create markets seamlessly and efficiently. AMMs bring a large transformation to the cryptocurrency industry. AMMs are still in their development phase. There are various AMMs like <a href=\"http:\/\/bitcoinik.com\/what-is-uniswap-how-to-use-uniswap-full-guide\/\" class=\"rank-math-link\">Uniswap<\/a>, Curve, and PancakeSwap with elegant design, but they have limited features and are working towards the betterment of the platform. In the future, you will have various innovative AMM designs coming to light. Ultimately it will lead to lower transaction fees, less friction, and better liquidity for each DeFi user.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you trade digital assets, you do it on the basis of trust with your fellow trader. Do you remember that guy who sold his pizza for 10,000 Bitcoins? Before transferring Bitcoins, he had to ensure that the person he is sending BTC will not run away with his coins.&nbsp; One way to perform such [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":12174,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[19],"tags":[],"class_list":["post-12148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-crypto-education"],"acf":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/bitcoinik.com\/index.php?rest_route=\/wp\/v2\/posts\/12148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcoinik.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinik.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinik.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinik.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12148"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinik.com\/index.php?rest_route=\/wp\/v2\/posts\/12148\/revisions"}],"wp:attachment":[{"href":"https:\/\/bitcoinik.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinik.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinik.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}