{"id":5776,"date":"2021-04-12T15:57:59","date_gmt":"2021-04-12T12:57:59","guid":{"rendered":"https:\/\/godex.io\/blog\/?p=5776"},"modified":"2021-10-15T12:51:31","modified_gmt":"2021-10-15T09:51:31","slug":"amm-automated-market-maker-explained","status":"publish","type":"post","link":"https:\/\/godex.io\/blog\/amm-automated-market-maker-explained","title":{"rendered":"AMM (Automated Market Maker) Explained"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_25_1 counter-hierarchy counter-decimal ez-toc-grey\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><label for=\"item\" aria-label=\"Table of Content\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/label><input type=\"checkbox\" id=\"item\"><\/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:\/\/godex.io\/blog\/amm-automated-market-maker-explained\/#amm_what_is_it\" title=\"AMM. What Is it?\">AMM. What Is it?<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/godex.io\/blog\/amm-automated-market-maker-explained\/#introduction_of_automated_market_maker\" title=\"Introduction of Automated Market Maker\">Introduction of Automated Market Maker<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/godex.io\/blog\/amm-automated-market-maker-explained\/#algorithms_of_automated_market_maker\" title=\"Algorithms of automated market maker\">Algorithms 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-4\" href=\"https:\/\/godex.io\/blog\/amm-automated-market-maker-explained\/#automated_market_maker_variations\" title=\"Automated Market Maker Variations\">Automated Market Maker Variations<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/godex.io\/blog\/amm-automated-market-maker-explained\/#how_do_smart_contracts_automate_trading_on_amms\" title=\"How do smart contracts automate trading on AMMs?\">How do smart contracts automate trading on AMMs?<\/a><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/godex.io\/blog\/amm-automated-market-maker-explained\/#faq\" title=\"FAQ\">FAQ<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/godex.io\/blog\/amm-automated-market-maker-explained\/#what_is_amm_crypto\" title=\"What is AMM Crypto?\">What is AMM Crypto?<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/godex.io\/blog\/amm-automated-market-maker-explained\/#why_are_amms_becoming_popular\" title=\"Why are AMMs becoming popular?\">Why are AMMs becoming popular?<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/godex.io\/blog\/amm-automated-market-maker-explained\/#what_are_the_risks_and_limitations_of_amms\" title=\"What are the risks and limitations of AMMs?\">What are the risks and limitations of AMMs?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"amm_what_is_it\"><\/span><span style=\"font-weight: 400;\">AMM. What Is it?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Let&#8217;s start with the definition. AMM is a system that provides liquidity on the exchange where it operates, due to automatic trading. Automatic market makers work much more efficiently than previously used human market makers on exchanges, which manually carried out transactions based on the order book created by people. Automatic liquidity providers have completely solved the problems with the so-called slippage and delays in detecting prices in the market. With the use of AMM prices are regulated without the participation of people.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"introduction_of_automated_market_maker\"><\/span><span style=\"font-weight: 400;\">Introduction of Automated Market Maker<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">A typical centralized cryptocurrency exchange uses an order book and order matching system to connect buyers with their respective sellers. An order book is a dynamic, real-time electronic record that stores and displays all orders to buy or sell cryptocurrency at different prices at any given time. An order matching system is a specialized software protocol that matches and calculates orders registered in an order book.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Sometimes, if there is a limited number of counterparties with which to trade, the user may not be able to execute their Bitcoin order on the exchange. When this happens, we say that &#8221; the Bitcoin market is illiquid.&#8221;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this respect, liquidity is an indicator or measure of&#8221; availability&#8221;. I.e., it is the rate at which an asset can be bought or sold without appreciably affecting its price stability.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When the market is illiquid, there are not enough available assets or traders. It becomes difficult to make a trade without having a significant impact on the price of the asset on that particular exchange.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To guarantee liquidity, centralized exchanges employ professional traders represented by banks, brokerages, and a host of other financial groups. They constantly provide a &#8220;spread \/ e \/ d between buyers and sellers&#8221;on the exchange. In other words, these market makers constantly offer to buy and sell an asset at different prices, so that users always have someone to trade with. The process of providing liquidity to an exchange is called market-making, and the organizations that provide this service are called market-makers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The role of a market maker is to make financial markets more efficient and reduce asset price volatility. Liquidity pools are tokens borrowed for use with the user&#8217;s consent, frozen in a smart contract to provide liquidity.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Liquidity pools provide users with the very ability to make transactions directly on the blockchain. Without him, it would have been impossible.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">A typical crypto exchange has many pools of liquidity, each of which necessarily contains two different assets linked together in a trading pair. Trading pairs can represent any two tokens, as long as they are part of the ERC20 standard \u2013 the most well-known standard for interchangeable tokens. By the way, the largest pool of liquidity on Uniswap is ETH WBTC. It is currently over $ 334 million (March 2021).\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The great thing about AMM is that any user can become a market maker. To become one, you need to deposit tokens for an amount equal to the value of two coins in the corresponding pool. For example, 200 LINK and 200 USDT to the USDT link pool. From this, you will receive passive income in the form of a percentage of transactions.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Fees or commissions are determined by each protocol individually and vary depending on the AMM. Before you start, you can study all the conditions. Uniswap, for example, charges a 0.3% commission on each trade, while Curve applies a 0.04% commission.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When the liquidity providers want to stop cooperating, they simply return the tokens to the Smart Contract and get back the amount of coins they provided, plus their commission.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"algorithms_of_automated_market_maker\"><\/span><span style=\"font-weight: 400;\">Algorithms of automated market maker<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">These algorithms are Smart Contracts. Their task is to create a token fund that will provide the price. Since the standard method on ordinary exchanges does not work here. Tokens are automatically traded by the algorithm.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The following main AMMS are currently available in the DeFi system (crypto tools): Uniswap, Balancer, Curve Finance, and Kyber Network.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">How is pricing formed on traditional exchanges? Through the application book. There are buyers &#8216;requests (bid) and sellers&#8217; requests (ask). The last transaction made is the market price. The difference between a bid and an ask is called a spread.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">One example of a mathematical formula that AMM uses: X*Y=K.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">X is the number of one token in a currency pair;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Y is the quantity of the other.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">K is a fixed constant that always remains the same.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">This one is used by Uniswap. Different platforms may apply different formulas, but the principle is about the same.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">What are the advantages of this approach? AMM allows you to perform operations without the need to search for a counterparty. How does trading on traditional exchanges work? If you want to buy, someone has to sell. Here you interact with the smart contract. The price is always determined by the formula. There is no book of bids, offers, requests, buyers or sellers. There is a pool of liquidity with the volume of different tokens.<\/span><\/p>\n<p>Read also <a target=\"_blank\" rel=\u201dnofollow,noopener\u201d href=\"https:\/\/godex.io\/blog\/crypto-currencies\/ethereum-smart-contracts-how-they-work\">Ethereum Smart Contracts \u2013 how they work?<\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"automated_market_maker_variations\"><\/span><span style=\"font-weight: 400;\">Automated Market Maker Variations<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Automatic Market Makers is what the crypto system needs, since without it, trading on the exchange is not possible with the token liquidity that most people have. Therefore, the progress and development of technology is accelerated. Today, there are 4 most important and popular types of Automated Market Makers.\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Uniswap<\/b><span style=\"font-weight: 400;\"> has become the most common model. It allows users to create a liquidity pool with any pair of ERC-20 standard coins with a 50\/50 ratio.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Curve<\/b><span style=\"font-weight: 400;\"> is considered the AMM with the lowest bids. It is specifically used for assets such as stablecoins.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Balancer<\/b><span style=\"font-weight: 400;\"> is another very common variation of AMM. It has broader functionality, allowing users to create dynamic pools of liquidity for up to eight different assets in any ratio.<\/span><\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"how_do_smart_contracts_automate_trading_on_amms\"><\/span><span style=\"font-weight: 400;\">How do smart contracts automate trading on AMMs?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Instead of using traditional trading methods, decentralized cryptocurrency exchanges rely on Automatic Market Makers or smart contracts. Since the usual tools can&#8217;t work here. AMM independently creates pools of token liquidity and sets prices according to mathematical formulas. And they can process this huge amount of information in seconds.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When you make exchanges on decentralized exchanges, you do not interact with other traders. Everything happens within the framework of using a smart contract.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When you make a transaction on an exchange using AMM, a third-party smart contract sends tokens to the liquidity pool to then exchange them for a similar token from the pair. The exchange rate between them is automatically calculated using the mathematical formula, one of which we gave above.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Because of the way AMMS works, there will always be some slippage on every trade. However, as a rule, the more liquidity in the pool, the less slippage of large orders.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"faq\"><\/span><span style=\"font-weight: 400;\">FAQ<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"what_is_amm_crypto\"><\/span><span style=\"font-weight: 400;\">What is AMM Crypto?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">In the world of cryptocurrency exchanges, AMMs are smart contracts. Their functionality is to create pools of token liquidity that are automatically traded using an algorithm.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">AMMs determine token prices based on pre-defined mathematical formulas. The capital used to fund these token funds is provided by users on a decentralized exchange. In exchange, they receive a percentage of the commission fees earned by the protocol. With AMM, prices are regulated without anyone&#8217;s participation.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"why_are_amms_becoming_popular\"><\/span><span style=\"font-weight: 400;\">Why are AMMs becoming popular?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Automated market makers are the driving force behind decentralized finance. They allow anyone to create markets and trade cryptocurrency seamlessly in a very secure, decentralized and non-custodial manner.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">And while AMMS have already experienced massive growth, they are still in their infancy. Inspiring innovations are just around the corner \u2013 multi-asset liquidity pools and protocols with non-permanent loss resistance are already being developed and tested.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Once Ethereum 2.0 is fully implemented and DeFi integrates the AMM innovations mentioned above, this new type of funding will become unstoppable and quite possibly widespread.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"what_are_the_risks_and_limitations_of_amms\"><\/span><span style=\"font-weight: 400;\">What are the risks and limitations of AMMs?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Non-permanent loss is the main and most common risk faced by liquidity providers in AMM. In essence, this is the reduction in the value of the token that users experience when depositing tokens in AMM, compared to if they held them in the wallet for the same time. The market maker prices each bet so that he is indifferent between a trader declining and accepting it.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">A non-permanent loss occurs when the market price between the tokens deposited in the AMM diverges in either direction. As a rule, the greater the difference between the prices of tokens after they are deposited, the more significant the non-permanent losses are.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Table of Contents AMM. What Is it?Introduction of Automated Market MakerAlgorithms of automated market makerAutomated Market Maker VariationsHow do smart contracts automate trading on AMMs?FAQWhat is AMM Crypto?Why are AMMs becoming popular?What are the risks and limitations of AMMs? AMM. What Is it? Let&#8217;s start with the definition. AMM is a system that provides liquidity [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":5777,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131,134],"tags":[1079,114,1857],"yst_prominent_words":[],"class_list":["post-5776","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-crypto-tips","category-popular-posts","tag-crypto-talks","tag-crypto-tips","tag-smart-contact"],"lang":"en","translations":{"en":5776},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/posts\/5776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/comments?post=5776"}],"version-history":[{"count":1,"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/posts\/5776\/revisions"}],"predecessor-version":[{"id":5778,"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/posts\/5776\/revisions\/5778"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/media\/5777"}],"wp:attachment":[{"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/media?parent=5776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/categories?post=5776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/tags?post=5776"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/godex.io\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=5776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}