Coins: 17,153
Exchanges: 1,247
Market Cap: $3.353T 0.3%
24h Vol: $109.617B
Gas: 0.981 GWEI
Go Ad-free
Guides
TABLE OF CONTENTS

Automated Market Makers (AMM): Facilitating Trades in DeFi

4.5
| by
Josiah Makori
-

Key Takeaways

  • An automated market maker is a model that offers liquidity in decentralized finance.

  • It facilitates automated trading of cryptocurrencies through liquidity pools instead of traditional order books. 

  • The model incentivizes crypto users to become liquidity providers in return for a share of transaction fees. 

  • Kyber Network, Uniswap, Balancer, Curve, and Bancor are the common AMM protocols.


What are AMMs

Decentralized finance (DeFi) has emerged as one of the most innovative landscapes in web3. The introduction of decentralized exchanges (DEXs) has democratized the mainstream adoption of crypto and contributed to new and revolutionary methods of accessing financial products and services with automated market makers (AMM) being among the numerous ways that were initially impossible. 

Traditionally, the intermediary holds the sovereign power to either serve or deny you financial products and services, and they also serve as custodians of the funds deposited with them. In recent times, due to the mismanagement of user funds, there has been a demand for these exchanges to share their Proof of Reserves

This leads to the biggest appeal of DeFi: there is no such centralized institution. Instead, the decentralized setup works through peer-to-peer interaction, letting you access various financial products and services, such as borrowing, lending, staking, etc., in the crypto space without an intermediary or custodian.

This article digs deep into automated market makers, how they work, liquidity pools and liquidity providers, types of automatic market makers, and the risk of impermanent loss

What are Automated Market Makers? 

Suppose you are a farmer and you want to sell your produce. Who do you sell to? A buyer, of course. Now, suppose you are a consumer who wants to purchase some vegetables for use. Who do you buy from? A seller, who may or may not be a farmer. In this case, let’s think of a conventional method of buying and selling the farm produce. 

Delivering the vegetables directly to the consumers would involve complex planning and logistics. After all, packaging, transporting, storing, shipping, and taking payments from individual consumers requires more labor and time. Besides, these steps can be an additional financial burden on the farmer. So, how do the farmers sell their produce without involving all the above steps? The answer is intermediaries. These middlemen buy the produce from farmers in bulk, run the intermediate processes, factor in their profit, and sell it to end consumers like you and me.  

The primary objective of an AMM in crypto is to offer much-needed liquidity. Think of a farmer who has harvested a bumper crop but has nobody to sell to, or a consumer who wants to buy farm produce but has no direct access to farms! Market makers ensure the smooth buying and selling of cryptocurrencies in DeFi. 

An AMM is a crypto trading method that works autonomously to incentivize cryptocurrency users to become liquidity providers (LPs) in return for a portion of the transaction fees and/or the distribution of the protocol’s native token. The makers remove the need for intermediaries and traditional market-making mechanisms, such as order-matching systems and other custodial methods. 

How it works: a cryptocurrency AMM provides liquidity autonomously through smart contracts. LPs provide liquidity by locking assets into these self-governing contracts, while DEX buyers and sellers trade against this liquidity and pay transaction fees. DEXs then share the accumulated transaction fees with the LPs based on LPs’ token shares in the pools. 

How do AMMs Work?

The primary role of an AMM is to facilitate the smooth trading of crypto in DeFi without the use of order books. Moreover, though AMMs have trading pairs, there are no counterparties with matching offers. Instead, they leverage smart contracts to regulate liquidity pools and ensure seamless trading. 

Basically, a liquidity pool comprises two cryptocurrencies in the form of a trading pair, for instance, BNB and BUSD. AMMs use algorithms to control the value of assets in the pools and conform to the market prices of the assets. The standard formula used by most DEXs is:

liquidity pool formula x*y = k

X is the amount of asset A, Y is the amount of asset B, and k is the fixed constant. The formula fundamentally ensures the total liquidity in a pool remains the same and lets smart contracts regulate the pair’s price ratio. For example, when a trader purchases BNB (paying with BUSD) from a BNB-BUSD liquidity pool, the amount of BNB in the pool reduces while the amount of BUSD increases. The pool’s algorithm adjusts the pair’s price ratio according to the market valuation, maintaining the x*y = k formula. Some DeFi protocols, such as Curve, utilize more complicated formulas, but the concept remains the same.

Liquidity 

As mentioned, the main role of AMMs is to provide liquidity in DeFi. So, how does an AMM obtain liquidity? The standard method incentivizes crypto investors to deposit assets in a liquidity pool in return for a portion of the generated transaction fees. Any crypto investor from any part of the world can lock them in a given pool and start generating passive returns

Recently, DeFi protocols like Olympus have emerged, which strive to establish “protocol-based liquidity” solutions. They are part of the emerging trend known as DeFi 2.0. Indeed, creating high liquidity is essential for the mainstream adoption of DeFi as it reduces the price slippage brought by big trades. 

Slippage

Slippage is a sudden change in the price of a token caused by a big trade. 

Slippage does not only affect AMM protocols – it can also affect order book exchanges. But AMMs are more vulnerable to slippage as their price-adjusting algorithms rely on the ratio between the tokens in a pool. As such, higher liquidity implies minor price swings. You can also mitigate slippage via the protocol itself. For instance, Curve Finance focuses on like assets; such as pools featuring stablecoins like USDT and USDC, or only wrapped bitcoin tokens. This reduces the risk of impermanent loss since the assets in the pool are all trending towards the same price, and the lower fluctuations also result in a smaller fee and a lower risk of slippage due to the low price volatility of the tokens in the pool. 

Impermanent Loss 

Another problem plaguing the AMM mechanism is the risk of impermanent loss, which adversely affects LPs. Impermanent loss is when an asset’s price change causes your assets in a liquidity pool to be worth less than the original value deposited. It’s impermanent since you can recover the loss if the token pair regains the initial market price. The CoinGecko Impermanent Loss Calculator makes it easy for LPs to calculate impermanent losses when they offer liquidity. 

CoinGecko AMM calculator

Locking assets in a pool is mainly incentivized by the opportunity of yield farming through the transaction fees accumulated by the pool. But due to impermanent loss, liquidity provision is sometimes less profitable. Besides, the AMM algorithm only balances the values of token pairs. This means the same assets can have different market prices; hence, withdrawing them from the pool could bring you losses. However, by refusing to cash out your funds – with a view of waiting for them to regain their initial price – you may hinder your ability to explore other lucrative opportunities. 

Examples of AMMs

There are two primary types of AMMs in crypto. First, there are AMMs created and controlled by professional market makers. Secondly, some AMMs are completely automated through algorithms, enabling any crypto holder to participate by locking assets into smart contracts. With that in mind, we will discuss the five common AMM protocols. 

Kyber Network 

Kyber Network was one of the first AMMs to utilize automated liquidity pools in 2018. The Kyber team or specialist market makers deploy Kyber’s liquidity pools. Unlike other makers, like Uniswap, the Kyber pools have limited access. External oracles or smart contract features regulate the prices of the assets in the pools during setup.  

Uniswap

Uniswap was the first DEX to embrace decentralized AMMs in 2019. It lets anyone run a liquidity pool on the protocol and allows any crypto investor to contribute liquidity. Unlike Kyber Network, token prices in Uniswap liquidity pools are not configured or controlled. Instead, the token prices are based on the balance ratio between the assets.   

Balancer 

Balancer is a newer protocol with unique features, unlike the above two protocols. It works similarly to Uniswap but provides more dynamic features, enabling it to have more applications besides acting as a simple liquidity pool. For example, it supports custom pool ratios, multi-asset pools, and dynamic pool fees. Multi-asset pools function as an index in crypto and act as a distinct feature of Balancer.  

Curve 

Curve is among the newest AMM protocols in the DeFi space. It launched in 2020 and contains admin-only-based liquidity pools. Anyone can contribute to the pools, and they only support stablecoins. The protocol regards its decision to support only stablecoins as a feature and not a hindrance. By supporting stablecoin-only or wrapped-coin-only pools (e.g. WETH/ETH or WBTC/SBTC), Curve can handle big trade requests effectively with minimal slippage.   

Bancor 

You can offer liquidity to a Bancor pool using one token and maintain 100% exposure to the asset. This is unlike other AMM protocols that require you to maintain exposure to many tokens. With single-token-based liquidity, you can stay long on an asset and qualify for “HODL” returns while earning transaction fees. The fees auto-compound in the pools and are paid in the staked assets. 

Conclusion

As DeFi goes mainstream, you can anticipate more innovations to further democratize financial products and services. The core objective of web3 is to empower people to be their own banks. AMMs will continue to play their role in creating utilities to offer permissionless access to finance beyond limits. Indeed, the future of decentralized finance is quite exciting!

CoinGecko's Content Editorial Guidelines
CoinGecko’s content aims to demystify the crypto industry. While certain posts you see may be sponsored, we strive to uphold the highest standards of editorial quality and integrity, and do not publish any content that has not been vetted by our editors.
Learn more
Want to be the first to know about upcoming airdrops?
Subscribe to the CoinGecko Daily Newsletter!
Join 600,000+ crypto enthusiasts, traders, and degens in getting the latest crypto news, articles, videos, and reports by subscribing to our FREE newsletter.
Tell us how much you like this article!
Vote count: 23
Josiah Makori
Josiah Makori
Josiah is a tech evangelist passionate about helping the world understand Blockchain, Crypto, NFT, DeFi, Tokenization, Fintech, and Web3 concepts. His hobbies are listening to music and playing football. Follow the author on Twitter @TechWriting001

Related Articles

Select Currency
Suggested Currencies
USD
US Dollar
IDR
Indonesian Rupiah
TWD
New Taiwan Dollar
EUR
Euro
KRW
South Korean Won
JPY
Japanese Yen
RUB
Russian Ruble
CNY
Chinese Yuan
Fiat Currencies
AED
United Arab Emirates Dirham
ARS
Argentine Peso
AUD
Australian Dollar
BDT
Bangladeshi Taka
BHD
Bahraini Dinar
BMD
Bermudian Dollar
BRL
Brazil Real
CAD
Canadian Dollar
CHF
Swiss Franc
CLP
Chilean Peso
CZK
Czech Koruna
DKK
Danish Krone
GBP
British Pound Sterling
GEL
Georgian Lari
HKD
Hong Kong Dollar
HUF
Hungarian Forint
ILS
Israeli New Shekel
INR
Indian Rupee
KWD
Kuwaiti Dinar
LKR
Sri Lankan Rupee
MMK
Burmese Kyat
MXN
Mexican Peso
MYR
Malaysian Ringgit
NGN
Nigerian Naira
NOK
Norwegian Krone
NZD
New Zealand Dollar
PHP
Philippine Peso
PKR
Pakistani Rupee
PLN
Polish Zloty
SAR
Saudi Riyal
SEK
Swedish Krona
SGD
Singapore Dollar
THB
Thai Baht
TRY
Turkish Lira
UAH
Ukrainian hryvnia
VEF
Venezuelan bolívar fuerte
VND
Vietnamese đồng
ZAR
South African Rand
XDR
IMF Special Drawing Rights
Cryptocurrencies
BTC
Bitcoin
ETH
Ether
LTC
Litecoin
BCH
Bitcoin Cash
BNB
Binance Coin
EOS
EOS
XRP
XRP
XLM
Lumens
LINK
Chainlink
DOT
Polkadot
YFI
Yearn.finance
Bitcoin Units
BITS
Bits
SATS
Satoshi
Commodities
XAG
Silver - Troy Ounce
XAU
Gold - Troy Ounce
Select Language
Popular Languages
EN
English
RU
Русский
DE
Deutsch
PL
język polski
ES
Español
VI
Tiếng việt
FR
Français
PT
Português
All Languages
AR
العربية
BG
български
CS
čeština
DA
dansk
EL
Ελληνικά
FI
suomen kieli
HE
עִבְרִית
HI
हिंदी
HR
hrvatski
HU
Magyar nyelv
ID
Bahasa Indonesia
IT
Italiano
JA
日本語
KO
한국어
LT
lietuvių kalba
NL
Nederlands
NO
norsk
RO
Limba română
SK
slovenský jazyk
SL
slovenski jezik
SV
Svenska
TH
ภาษาไทย
TR
Türkçe
UK
украї́нська мо́ва
ZH
简体中文
ZH-TW
繁體中文
Log in
By continuing, you agree to CoinGecko Terms of Service and acknowledge you’ve read our Privacy Policy
or
Forgot your password?
Didn't receive confirmation instructions?
Resend confirmation instructions
Sign up
By continuing, you agree to CoinGecko Terms of Service and acknowledge you’ve read our Privacy Policy
or
Password must contain at least 8 characters including 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character
Didn't receive confirmation instructions?
Resend confirmation instructions
Forgot your password?
You will receive an email with instructions on how to reset your password in a few minutes.
Resend confirmation instructions
You will receive an email with instructions for how to confirm your email address in a few minutes.
Get the CoinGecko app.
Scan this QR code to download the app now App QR Code Or check it out in the app stores
coingecko
Continue in app
Track prices in real-time
Open App