What Is an Automated Market Maker (AMM)?
By: bitcoin ethereum news|2025/05/07 04:15:01
0
Share
The Main Automated Market Maker (AMM) is a software algorithm for controlling the liquidity and pricing of cryptoassets on decentralized exchanges. AMM systems are widely used in the DeFi industry, particularly on decentralized exchanges (DEX) such as Uniswap, Balancer, Bancor, and Curve. AMM uses liquidity in cryptocurrency public pools of multiple tokens locked in special smart contracts to create decentralized markets. How did the automated market maker (AMM) come to be? An automated market maker (AMM) is an autonomous trading mechanism on which most trading DeFi protocols operate. It enables the movement of capital and execution of user exchanges in the available cryptoasset markets. The first known developer to talk about implementing AMM was Alan Liu, a member of the Gnosis project team. His ideas were outlined by Ethereum founder Vitalik Buterin on Reddit in 2016 and in a personal blog in July 2017. This concept formed the basis of the Uniswap platform protocol, which received its first $100,000 grant from the Ethereum Foundation. In addition, Vitalik Buterin advised the Uniswap developers. Subsequently, AMM became widely known thanks to Uniswap. At the same time, one of the first successful AMM implementations can be called the Bancor Network platform, which raised $140 million through an ICO in June 2017. The key element necessary for MMA to work is a liquidity pool – a kind of storage of crypto-assets in the form of a smart contract. The liquidity pool usually consists of two cryptoassets and forms a market – analogous to a trading pair on a centralized exchange. Some pool participants block their funds to generate income through exchange commissions. Such users are called liquidity providers. Another category is direct users of a decentralized exchange who exchange cryptocurrencies in the protocol (such transactions are called “swaps”) using one of the pools. To better understand liquidity pools, let’s look at what led to their creation. The first DEX exchanges operated on Ethereum and used the standard order book used on centralized exchanges for trading. For such a trading mechanism to be effective, it must have an extremely high transaction processing speed. Given that transactions on a decentralized exchange are confirmed via blockchain, the actual speed and capabilities of such DEXs were extremely limited. AMM provided a solution to this problem. Thus, AMM is a fundamentally different way of creating an asset market, being the formula or rules by which the protocol deals with buy or sell orders and users’ reserves. How do liquidity pools work? Pools can use two or more assets. For example, on the Uniswap exchange, you can create pools for paired tokens. The Balancer platform allows you to create pools for three or more tokens. And the Curve protocol is designed for asset-based pools with similar value, such as ETH and wrapped token WETH or USDC and DAI. The operation of these pools is governed by AMMs. Each such AMM-DEX may use its own formulas and rules to interact with liquidity pools. For example, the Uniswap protocol uses the following formula: x * y = k. In the equation, x and y represent the number of tokens available in the liquidity pool; k is a constant value called the invariant. In the case of Curve, the formulas x * y = k and x + y = k are used. The formula x * y = k is also used for the SushiSwap and PancakeSwap projects, which are the most common type of AMM-DEX. How is an asset in a liquidity pool priced? When liquidity is blocked in a pool, its provider receives special LP-tokens confirming their share in the pool. They can be presented as a promissory note, the possession of which gives the right to receive commissions from exchange transactions on the exchange and return their share from the pool; LP-tokens are a transferable crypto-asset that can be sold or exchanged on the open market and invested in third-party DeFi applications. The process of exchanging one asset for another through a liquidity pool is called a swap. The essence of the process is to add only one asset to the pool instead of two, as in the case of LPs. The pool charges a small commission for the swap, comparable to the commission for a transaction on a centralized exchange, i.e. 0.1-0.3%. The fees are distributed among liquidity providers in proportion to their share in the pool. Example Let’s create a conditional liquidity pool for ETH/USDC pair. At the price of 1 ETH equal to 2000 USDC, we will need to simultaneously block any amount of these two coins in the smart contract in the ratio of 1:2000. At this price, there could be 100 ETH and 200,000 USDC in the pool. The balance of assets in the pool is determined by their price. When a user decides to exchange 10 ETH using the pool described above, he will deposit his coins into a smart contract in a normal transaction. In exchange for his 10 ETH, he will receive 20,000 USDC (excluding the exchange fee). After this exchange, the balance of the pool will be 110 ETH and 180,000 USDC. Consequently, the price of ETH specifically in this pool will be around 1636 USDC instead of 2000 USDC in other markets. This situation attracts arbitrage traders who capitalize on the imbalance by adding USDC to the pool until the price reaches a market price of 2,000 USDC per 1 ETH. What are the drawbacks of the MMA? Although AMM has been a breakthrough for trading and DeFi, it has a number of distinct disadvantages. First, there is a high risk of price slippage when making swaps using the MMA. In turn, this leads to risks of incurred losses for LPs and miner-extracted value (MEV) for ordinary users. To protect against such risks, other types of AMMs are being created, such as the CowSwap project, which combines the developments of AMM-Balancer and the Gnosis protocol. Second, unlike centralized exchanges, only one type of orders can be placed when trading through AMM. It is impossible to trade with limit orders or other types, for example Stop Loss. What is Impermanent Loss? Impermanent Loss (IL) is a temporary or unrealized loss when holding assets in a liquidity pool using AMM-DEX. ILs are attributed to liquidity providers (LPs), meaning the difference in price at the time tokens are locked in the pool and the actual price at the time of holding. Losses are called unrealized because they are not locked in until liquidity is withdrawn from the pool. As an example, let us take a liquidity pool on the Uniswap exchange, which works according to the classical formula x * y = k: A liquidity provider blocked 1 ETH and 2000 DAI. Its share in the pool amounted to 10%; The pool holds a total of 10 ETH and 20,000 DAI – the equivalent of 40,000 DAI. The balance of the pool did not change because there were no new liquidity providers. Let’s assume that the market price of ETH changed to 4000 DAI. Then arbitrage traders took advantage of the situation and changed the ratio in the pool to 5 ETH on one side and 20,000 DAI on the other. At the same time, the total size of the pool remained the original 40,000 DAI. At this point, the liquidity provider decided to withdraw his share from the pool – it is 10%. Given the current pool balance, he withdraws 0.5 ETH and 2000 DAI, although initially he added 1 ETH and 2000 DAI. The initial value of his share was 4000 DAI (1 ETH plus 2000 DAI) in terms of stablecoins. The asset value at the time of withdrawal was the same 4000 DAI (0.5 ETH plus 2000 DAI) However, if the user had simply held their 1 ETH and 2000 DAI, their asset value would have been 6000 DAI. This is the unrealized loss or gain when using AMM-DEX. The user will also receive 10% (proportional to his share in the pool) of all pool commissions as a reward for providing liquidity. The reward may be reduced, for example, due to taxes allocated to the developers or to the project treasury for future development. This is a conditional example of a sharp increase in the price of one asset by 50%, without taking into account the many transactions of arbitrage traders and the time needed to align the priceof an asset within the pool with the price on centralized exchanges, where changes occur instantly. When the market is “calm”, variable movements are added to the Impermanent Loss calculation, as described in his blog by StarkNet developer Peteris Erins. As a result of these predictive calculations, the Impermanent Loss value on a two-fold movement in the price of an asset would be about 5.7%. But this is only a forecast value – potential “losses” are very difficult to predict. How to reduce risks when trading with AMM? Before using a liquidity pool, you should calculate all possible commissions that you will have to pay at the time of deposit and planned withdrawal of assets. The possibility of asset price movements in either direction must be taken into account. Some potential problems, such as the risk of intermittent loss (IL), can be calculated in advance. To calculate IL, you need to understand the nature of its origin. You can also use one of the variable loss calculators available online. Source: https://coinpaper.com/8955/what-is-an-automated-market-maker-amm
You may also like

Just now, Sam Altman was attacked again, this time by gunfire
Sam Altman's residence was shot at again, reflecting the deep anxiety and crisis of trust among the public regarding the accelerated evolution of AI into a "quasi-political force" and the lack of social checks and balances behind the extreme violence.

Straits Blockade, Stablecoin Recap | Rewire News Morning Edition
Oil Price Surges

From High Expectations to Controversial Turnaround, Genius Airdrop Triggers Community Backlash
The deadline for immediate claim is 7 days after TGE. If the user chooses immediate claim, 70% of the tokens will be automatically burned.

The Xiaomi electric vehicle factory in Beijing's Daxing district has become the new Jerusalem for the American elite
What exactly turns an automotive assembly line into a hot spot?

Lean Harness, Fat Skill: The Real Source of 100x AI Productivity
error

Ultraman is not afraid of his mansion being attacked; he has a fortress.
Publicly Betting AI Will Succeed, Secretly Preparing for AI to Go Rogue

US-Iran Negotiations Collapse, Bitcoin Faces Battle to Defend $70,000 Level
Polymarket's latest data shows that the market probability of the Fed standing pat this year has risen to 44%.

Reflections and Confusions of a Crypto VC
As the tide recedes, crypto VCs face a life-and-death test. The bubble of blind token overvaluation has been burst, and the industry's valuation logic is returning to real revenue. In the face of increasingly savvy retail investors and dried-up liquidity, VCs that can only throw money around are des...

Morning News | Ether Machine terminates $1.6 billion SPAC deal; SpaceX holds approximately $603 million in Bitcoin; Michael Saylor releases Bitcoin Tracker information again
Overview of Important Market Events on April 12

Crypto ETF Weekly | Last week, the net inflow for Bitcoin spot ETFs in the U.S. was $816 million; the net inflow for Ethereum spot ETFs in the U.S. was $187 million
Bitwise updates Hyperliquid ETF application documents, with the trading code set as BHYP.

This week's news preview | The U.S. will release March PPI data; French President Macron will give a speech at Paris Blockchain Week
Highlights of the week from April 13 to April 19.

How Do Digital Assets Self-Custody? OpenAI Cofounder's 15-Step Checklist
It's time to outsource our memory to AI

Circle Product Management Director: The Future of Cross-Chain: Building an Interoperability Technology Stack for Internet Financial Systems
Building on the foundation laid by CCTP, Circle is increasing its investment in three main areas: settlement acceleration, broader asset interoperability, and orchestration, making cross-chain value flow more seamless and efficient, and achieving internet-level usability.
UCL Fan Tokens 2026 Guide: How to Trade UEFA Champions League Crypto with Zero Fees on WEEX
Discover UCL fan tokens like PSG, Barcelona, and Man City. Learn how to trade UEFA Champions League crypto with zero fees and earn rewards on WEEX.
WEEX Poker Party Season 2: Check How to Earn Crypto Rewards Now!
Learn how WEEX Poker Party Season 2 (Joker Card Event) works. Discover rules, scoring, rewards, and strategies to earn crypto rewards through gamified trading.

Yu Weiwen: Steady Development of Hong Kong's Compliant Stablecoin Ecosystem
The President of the Hong Kong Monetary Authority, Eddie Yue, published an article titled "Steady Development of Hong Kong's Compliant Stablecoin Ecosystem" in the official column "Hui Si," in which he pointed out that this licensing marks a new stage in the regulation of stablecoins in Hong Kong.

After TACO Ceasefire, Iran War is Just on Pause
Ceasefire Eased Market Sentiment but Did Not Address Core Conflict

The 17-Year Mystery Will Be Solved, Who is Satoshi Nakamoto?
The New York Times Traces the Mystery of Satoshi Nakamoto, with Clues Pointing to Adam Back
Just now, Sam Altman was attacked again, this time by gunfire
Sam Altman's residence was shot at again, reflecting the deep anxiety and crisis of trust among the public regarding the accelerated evolution of AI into a "quasi-political force" and the lack of social checks and balances behind the extreme violence.
Straits Blockade, Stablecoin Recap | Rewire News Morning Edition
Oil Price Surges
From High Expectations to Controversial Turnaround, Genius Airdrop Triggers Community Backlash
The deadline for immediate claim is 7 days after TGE. If the user chooses immediate claim, 70% of the tokens will be automatically burned.
The Xiaomi electric vehicle factory in Beijing's Daxing district has become the new Jerusalem for the American elite
What exactly turns an automotive assembly line into a hot spot?
Lean Harness, Fat Skill: The Real Source of 100x AI Productivity
error
Ultraman is not afraid of his mansion being attacked; he has a fortress.
Publicly Betting AI Will Succeed, Secretly Preparing for AI to Go Rogue
