Contents
Automated Market Makers 101
1. How do AMMs work?
2. What are the advantages of using AMMs?
3. Which are the popular AMMs?
4. Do AMMs support fiat-to-crypto trading?
5. What's the future of AMMs in the cryptocurrency ecosystem?
Automated Market Makers Explained
Liquidity Pools and Liquidity Providers
Constant Product Formula
Automated Market Maker Variations
What Are Automated Market Makers (AMM)?
Instead of relying on the traditional buyers and sellers in a financial market, AMMs keep the DeFi ecosystem liquid 24/7 via liquidity pools.
Updated October 2, 2023 • 4 min read
Summary
Automated market makers (AMMs) are part of the decentralized finance (DeFi) ecosystem. They allow digital assets to be traded in a permissionless and automatic way by using liquidity pools rather than a traditional market of buyers and sellers. AMM users supply liquidity pools with crypto tokens, whose prices are determined by a constant mathematical formula. Liquidity pools can be optimized for different purposes, and are proving to be an important instrument in the DeFi ecosystem.
Checkout tokens like BAL or BNT to learn more about liquidity pool-based tokens
Contents
Automated Market Makers 101
1. How do AMMs work?
2. What are the advantages of using AMMs?
3. Which are the popular AMMs?
4. Do AMMs support fiat-to-crypto trading?
5. What's the future of AMMs in the cryptocurrency ecosystem?
Automated Market Makers Explained
Liquidity Pools and Liquidity Providers
Constant Product Formula
Automated Market Maker Variations
Automated Market Makers 101
1. How do AMMs work?
AMMs use liquidity pools, where users can deposit cryptocurrencies to provide liquidity. These pools then use algorithms to set token prices based on the ratio of assets in the pool. When a user wants to trade, they swap one token for another directly through the AMM, with prices determined by the pool's algorithm.
2. What are the advantages of using AMMs?
Liquidity: AMMs can provide continuous liquidity for a wide range of assets, making it easier to trade less popular cryptocurrencies.
Accessibility: Anyone can provide liquidity to AMMs and participate in trading, often with lower fees compared to traditional exchanges.
Decentralization: AMMs often operate without centralized intermediaries, offering greater autonomy and control to users.
3. Which are the popular AMMs?
Some of the well-known AMMs include Uniswap, SushiSwap, PancakeSwap, and Balancer. Each has its unique features and supported assets.
4. Do AMMs support fiat-to-crypto trading?
AMMs primarily facilitate cryptocurrency-to-cryptocurrency trading. To trade with fiat currency, users usually need to go through a centralized exchange or other on/off-ramp services to convert fiat to cryptocurrency before interacting with AMMs.
5. What's the future of AMMs in the cryptocurrency ecosystem?
AMMs have played a significant role in the DeFi (Decentralized Finance) space, and their popularity may continue to grow. They may expand to support more assets, offer new features, and integrate with other DeFi protocols, contributing to the ongoing decentralization and innovation within the cryptocurrency ecosystem.
Automated Market Makers Explained
Automated market makers (AMMs) allow digital assets to be traded without permission and automatically by using liquidity pools instead of a traditional market of buyers and sellers. On a traditional exchange platform, buyers and sellers offer up different prices for an asset. When other users find a listed price to be acceptable, they execute a trade and that price becomes the asset’s market price. Stocks, gold, real estate, and most other assets rely on this traditional market structure for trading. However, AMMs have a different approach to trading assets.
AMMs are a financial tool unique to Ethereum and decentralized finance (DeFi). This new technology is decentralized, always available for trading, and does not rely on the traditional interaction between buyers and sellers. This new method of exchanging assets embodies the ideals of Ethereum, crypto, and blockchain technology in general: no one entity controls the system, and anyone can build new solutions and participate.
Liquidity Pools and Liquidity Providers
Liquidity refers to how easily one asset can be converted into another asset, often a fiat currency, without affecting its market price. Before AMMs came into play, liquidity was a challenge for decentralized exchanges (DEXs) on Ethereum. As a new technology with a complicated interface, the number of buyers and sellers was small, which meant it was difficult to find enough people willing to trade on a regular basis. AMMs fix this problem of limited liquidity by creating liquidity pools and offering liquidity providers the incentive to supply these pools with assets. The more assets in a pool and the more liquidity the pool has, the easier trading becomes on decentralized exchanges.
On AMM platforms, instead of trading between buyers and sellers, users trade against a pool of tokens — a liquidity pool. At its core, a liquidity pool is a shared pot of tokens. Users supply liquidity pools with tokens and the price of the tokens in the pool is determined by a mathematical formula. By tweaking the formula, liquidity pools can be optimized for different purposes.
Anyone with an internet connection and in possession of any type of ERC-20 tokens can become a liquidity provider by supplying tokens to an AMM’s liquidity pool. Liquidity providers normally earn a fee for providing tokens to the pool. This fee is paid by traders who interact with the liquidity pool. Recently, liquidity providers have also been able to earn yield in the form of project tokens through what is known as “yield farming.”
Constant Product Formula
AMMs have become a primary way to trade assets in the DeFi ecosystem, and it all began with a blog post about “on-chain market makers” by Ethereum founder Vitalik Buterin. The secret ingredient of AMMs is a simple mathematical formula that can take many forms. The most common one was proposed by Vitalik as:
tokenA_balance(p) * tokenB_balance(p) = k
and popularized by Uniswap as:
x * y = k
The constant, represented by “k” means there is a constant balance of assets that determines the price of tokens in a liquidity pool. For example, if an AMM has ether (ETH) and bitcoin (BTC), two volatile assets, every time ETH is bought, the price of ETH goes up as there is less ETH in the pool than before the purchase. Conversely, the price of BTC goes down as there is more BTC in the pool. The pool stays in constant balance, where the total value of ETH in the pool will always equal the total value of BTC in the pool. Only when new liquidity providers join in will the pool expand in size. Visually, the prices of tokens in an AMM pool follow a curve determined by the formula.
In this constant state of balance, buying one ETH brings the price of ETH up slightly along the curve, and selling one ETH brings the price of ETH down slightly along the curve. The opposite happens to the price of BTC in an ETH-BTC pool. It doesn’t matter how volatile the price gets, there will eventually be a return to a state of balance that reflects a relatively accurate market price. If the AMM price ventures too far from market prices on other exchanges, the model incentivizes traders to take advantage of the price differences between the AMM and outside crypto exchanges until it is balanced once again.
The constant formula is a unique component of AMMs — it determines how the different AMMs function.
Automated Market Maker Variations
In Vitalik Buterin’s original post calling for automated or on-chain money markets, he emphasized that AMMs should not be the only available option for decentralized trading. Instead, there needed to be many ways to trade tokens, since non-AMM exchanges were vital to keeping AMM prices accurate. What he didn’t foresee, however, was the development of various approaches to AMMs.
The DeFi ecosystem evolves quickly, but three dominant AMM models have emerged: Uniswap, Curve, and Balancer.
Uniswap’s pioneering technology allows users to create a liquidity pool with any pair of ERC-20 tokens with a 50/50 ratio, and has become the most enduring AMM model on Ethereum.
Curve specializes in creating liquidity pools of similar assets such as stablecoins, and as a result, offers some of the lowest rates and most efficient trades in the industry while solving the problem of limited liquidity.
Balancer stretches the limits of Uniswap by allowing users to create dynamic liquidity pools of up to eight different assets in any ratio, thus expanding AMMs’ flexibility.
Although Automated Market Makers harness a new technology, iterations of it have already proven an essential financial instrument in the fast-evolving DeFi ecosystem and a sign of a maturing industry.
Cryptopedia does not guarantee the reliability of the Site content and shall not be held liable for any errors, omissions, or inaccuracies. The opinions and views expressed in any Cryptopedia article are solely those of the author(s) and do not reflect the opinions of Gemini or its management. The information provided on the Site is for informational purposes only, and it does not constitute an endorsement of any of the products and services discussed or investment, financial, or trading advice. A qualified professional should be consulted prior to making financial decisions. Please visit our Cryptopedia Site Policy to learn more.
Is this article helpful?