Cointime

Download App
iOS & Android

What is an Automated Market Maker?

Validated Venture

AMM systems are widely used in the DeFi industry, particularly on DEXs 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 АММ emerge?

The Automated Market Maker (AMM) is an autonomous trading mechanism used by most of DeFi trading protocols. It facilitates the movement of capital and the execution of users’ exchange transactions on available crypto-asset markets.

Alan Liu, a member of the Gnosis project team, was the first prominent developer to discuss implementing AMM.

His ideas were outlined by Ethereum founder Vitalik Buterin on Reddit in 2016 and in his personal blog in July 2017.

This concept formed the basis of the Uniswap platform protocol, which received its first grant of $100,000 from the Ethereum Foundation. Vitalik Buterin also consulted with the Uniswap developers.

As a result of Uniswap, AMM gained widespread recognition. Simultaneously, one of the first successful AMM implementations is the Bancor Network platform, which raised $140 million through an ICO in June 2017.

How are liquidity pools related to AMM?

A liquidity pool — a type of storage of crypto-assets in the form of a smart contract — is required for AMM to function. A liquidity pool is typically made up of two crypto-assets that together form a market, similar to a trading pair on a centralized exchange.

Some pool participants invest their funds in order to earn money from exchange fees. These users are referred to as liquidity providers.

Another group is direct users of the decentralized exchange, who use one of the pools to exchange cryptocurrencies in the protocol (such transactions are known as “swaps”).

Consider what led to the formation of liquidity pools to gain a better understanding of them.

The first DEX exchanges were built on Ethereum and traded using the standard order book found on centralized exchanges. To be effective, such a trading mechanism must have extremely fast transaction processing speeds. Because transactions on a decentralized exchange are confirmed using a blockchain, the actual speed and capabilities of such a DEX were extremely limited. AMM enabled us to find a solution to this problem.

Thus, AMM is a fundamentally different way to create an asset market, as it is a formula or set of rules by which the protocol interacts with bids to buy or sell as well as user reserves.

How do liquidity pools work?

Pools can be made up of two or more assets. The Uniswap exchange, for example, can set up pools for paired tokens. You can create pools for three or more tokens on the Balancer platform. The Curve protocol is also intended for pools based on similar assets, such as ETH and wrapped token WETH or USDC and DAI. These pools’ operations are governed by AMMs.

To interact with liquidity pools, each of these AMM-DEXs may use its own formulas and rules. 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, called an 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 by the SushiSwap and PancakeSwap projects, which are the most common type of AMM-DEX.

How is the pricing of an asset in the liquidity pool determined?

When liquidity is blocked in a pool, the pool’s provider receives special LP-tokens that confirm their participation in the pool. They can be represented by a promissory note, possession of which grants the right to receive commissions on exchange transactions and return their share of the pool.

LP-tokens are transferable crypto-assets that can be traded on the open market and invested in third-party DeFi applications.

A swap is the process of exchanging one asset for another via a liquidity pool. The process’s essence is to add only one asset to the pool, rather than two as in the case of LP. The pool charges a small fee for swaps, which is comparable to the fee for a deal at a centralized exchange, which is 0.1–0.3%. The commissions are divided among the liquidity providers in proportion to their participation in the pool.

Example

Let’s create a conditional liquidity pool for the ETH/USDC pair. At a price of 1 ETH equal to 2,000 USDC, it will be necessary to simultaneously lock in a smart contract any number of these two coins at a ratio of 1:2,000. At that 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 put his coins into a smart contract in a regular transaction. In exchange for his 10 ETH he will receive 20,000 USDC (not including exchange fees).

After that exchange, the pool balance will already be 110 ETH and 180,000 USDC. Consequently, the price of ETH in this particular pool will be about 1636 USDC instead of 2000 USDC in other markets. This situation attracts arbitrage traders, who profit from the imbalance by adding USDC to the pool until the market price reaches 2,000 USDC per ETH.

What are the АММ drawbacks?

Although AMM has been a game changer in trading and DeFi, it has a number of significant drawbacks. First, when making swaps with AMM, there is a high risk of price slippage. As a result, LPs face the risk of volatile losses, while regular users face the risk of Miner Extracted Value (MEV).

Other types of AMMs, such as the CowSwap project, which combines the development of AMM-Balancer and the Gnosis protocol, are being developed to mitigate such risks.

Second, unlike centralized exchanges, AMM allows you to place only one type of order. Limit orders and other types of orders, such as Stop Loss, are not permitted to be traded.

What is Impermanent Loss?

Impermanent Loss (IL) is a temporary or unrealized loss when using AMM-DEX to hold assets in the liquidity pool. The difference in price between the time the tokens are locked in the pool and the actual price at the time of holding is referred to as an IL. Unrealized losses are so-called because they are not fixed until liquidity is withdrawn from the pool.

As an example, let’s take the liquidity pool on the Uniswap exchange, which works according to the classic formula x * y = k:

  • Liquidity provider blocked 1 ETH and 2,000 DAI. His share in the pool was 10%.
  • The pool has a total of 10 ETH and 20,000 DAI — the equivalent of 40,000 DAI.
  • The balance of the pool remained unchanged because there were no new liquidity providers.
  • Let’s assume that the market price of ETH changed to 4,000 DAI.
  • The arbitrage traders then took advantage of the situation, changing the pool’s ratio to 5 ETH on one side and 20,000 DAI on the other. At the same time, the pool’s total size remained unchanged at 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 he originally added 1 ETH and 2000 DAI.
  • The original value of his share was 4,000 DAI (1 ETH plus 2,000 DAI) in terms of stabelcoins. The value of the assets at the time of withdrawal was the same 4000 DAI (0.5 ETH plus 2000 DAI)
  • However, if the user had simply kept his 1 ETH and 2000 DAI, the value of his assets would have been 6000 DAI. This is the unrealized loss or gain when using AMM-DEX.
  • As a liquidity reward, the user will also receive 10% of all pool commissions (in proportion to their share of the pool). The reward may be reduced due to taxes deducted from the developers or the project treasury for future development, for example.

This is a conditional example of a dramatic 50% increase in the price of a single asset, without taking into account the many trades by arbitrage traders and the time it takes to equalize the price

the price of the asset within the pool with the price at the centralized exchanges, where changes occur instantly.

When the market is “calm”, variable movements are added to the calculation of volatile losses, as described by StarkNet developer Peteris Erins in his blog. As a result of these forecast calculations, the Impermanent Loss value on a two-fold movement of the asset price will be about 5.7%. But this is only a projected value — potential “losses” are very difficult to predict.

How to reduce risks when trading with AMM?

Before you use a liquidity pool, you should calculate all of the possible commissions you will have to pay at the time of asset entry and withdrawal.

You must take into account the possibility of asset price movements in both directions. Some potential issues, such as non-permanent loss (IL) risk, can be predicted.

To calculate IL, you need to understand the nature of its origin. You can also use one of the non-permanent loss calculators available on the Internet.

Comments

All Comments

Recommended for you

  • Hedge Fund Net Exposure to US Tech Giants Reaches Record High of 22%

    On October 10, according to data from Goldman Sachs and The Kobeissi Letter, investor sentiment towards large tech stocks has reached an all-time high. Hedge fund net exposure to the 'Big Seven' tech giants in the US has risen to 22%, marking a historic peak; this figure has surged by 7 percentage points since July, representing the largest three-month increase in 2023, and surpassing the previous high of 21% set in June 2024 (compared to only 8% during the bear market low in 2022). During the same period, hedge fund net exposure to semiconductor stocks in the US has increased to 12%, slightly below the peak of 14% in June 2026, while this metric was only 2% at the beginning of 2025.

  • Anthropic Reveals Internal Issues: Out-of-Control AI Attempted to Access Multiple Government Websites, Reported to the White House

    Anthropic stated on Friday that its AI agents acted autonomously, attempting to access various federal, state, and local government websites. The company did not disclose which government agencies were involved but confirmed that it has reported these incidents to the White House. In a blog post, Anthropic mentioned that one of its AI models under testing had taken several unauthorized actions, including exploiting a vulnerability on a university website to download data and submitting a form to a government agency that it had been explicitly instructed not to submit. The company noted that it discovered these incidents after beginning a review of the AI's actions in July. Earlier on Friday, the Philadelphia Police Department stated that Anthropic had notified them that its technology had submitted a false homicide tip to the police website.

  • No Flights Departing or Arriving at Riyadh's King Khalid Airport Following Explosion Sounds

    On October 10, according to CCTV International News, witnesses reported that explosion sounds were heard at Terminal 3 of King Khalid International Airport in Riyadh, the capital of Saudi Arabia, this afternoon, leading to the evacuation of personnel from the airport. Flight tracking website 'FlightRadar24' indicates that there are currently no flights departing or arriving at the airport, and some flights heading to Riyadh have been diverted or returned. King Khalid International Airport has issued a traveler advisory, recommending that passengers contact their airlines to confirm flight status before heading to the airport.

  • BTC Surpasses $83,000

    Market data shows that BTC has surpassed $83,000, currently priced at $83,020.19, with a 24-hour decline of 0.2%. The market is experiencing significant fluctuations, so please ensure proper risk management.

  • ETH Surpasses $2500

    Market data shows that ETH has surpassed $2500, currently priced at $2500.03, with a 24-hour increase of 0.33%. The market is experiencing significant fluctuations, so please ensure proper risk management.

  • Houthi Forces Claim Saudi Airstrikes on Sana'a Airport in Yemen

    On October 10, according to information released by the Houthi forces in Yemen, on the afternoon of the same day local time, the Saudi-led coalition conducted airstrikes on Sana'a International Airport, which is under the control of the Houthi forces, dropping four bombs. Additionally, the Saudi coalition also targeted a communication facility in Hajjah Province, controlled by the Houthi forces, dropping three bombs. There has been no response from the Saudi side regarding these incidents. (Jinshi)

  • French Finance Committee Approves Amendments on Stablecoin Exchange Tax and Crypto Exit Tax

    On October 10, Decrypt reported that the Finance Committee of the French National Assembly approved two amendments related to cryptocurrency taxation this week: starting January 1, 2027, exchanges of stablecoins regulated under MiCA will be considered taxable sales; and an exit tax will be imposed on taxpayers who have been French tax residents for at least six of the past ten years and have moved abroad with crypto assets totaling over 800,000 euros. On October 9, the committee voted 31 to 3 to reject the budget revenue portion, and the full National Assembly will review based on the government's original text. The amendments will not be automatically included; supporters must reintroduce them during the debate starting on October 13, with a formal vote scheduled for October 20. The related measures have not yet become law. The stablecoin amendment was proposed by Nicolas Sansu, a member of the left-wing GDR party group, along with 16 co-signers, and does not set a new tax rate but aims to include the revenue under France's existing 31.4% flat tax system. The committee also passed an amendment allowing crypto asset losses to be carried forward for ten years to offset future gains.

  • Luxshare Precision: Company and Luxshare Technology Involved in 337 Investigation, Currently in Initial Filing Stage

    On October 10, Luxshare Precision announced that the company and its holding subsidiary, Dongguan Luxshare Technology Co., Ltd., have been listed as respondents in a 337 investigation by the U.S. International Trade Commission (ITC), involving U.S. Patent US 10,903,700. The ITC officially launched the investigation on October 9, 2026, with investigation number 337-TA-1526. The case is currently in the initial filing stage, and no substantial determination has been made regarding the relevant infringement claims. The products involved are in the customer verification stage and have not yet entered mass production.

  • South Korea's Financial Commission: Shareholding Restrictions for Exchange Major Shareholders Not Targeting Specific Companies

    On October 10, Lee Ik-yeon, chairman of the Financial Services Commission of South Korea, stated that the provisions regarding shareholding restrictions for major shareholders of virtual asset exchanges in the ongoing 'Basic Law on Digital Assets' are not aimed at specific individuals or companies. Instead, they are designed to ensure that exchanges, once institutionalized, bear a higher level of public responsibility. Currently, South Korean virtual asset exchanges operate under a system that requires updates every three years, but this will transition to a licensing system after the implementation of the 'Basic Law on Digital Assets.' Lee emphasized that exchanges have infrastructure attributes and must possess public accountability and responsibility commensurate with their status.

  • SVRN Acquires Infrastructure Platform FastNEAR

    On October 10, it was officially announced that NEAR Treasury Company SVRN has acquired the NEAR infrastructure platform FastNEAR. FastNEAR will join SVRN as a wholly-owned subsidiary, with its co-founders Evgeny (Eugene) Kuzyakov and Mike Purvis also joining the SVRN team. The announcement stated that FastNEAR is a high-performance RPC infrastructure provider behind NEAR applications and supports most of the data layer for NEAR, including server clusters for handling network read and write operations, archival infrastructure for storing complete transaction histories, and NEARDATA, a data source for developers to process these historical records.