Cointime

Download App
iOS & Android

How Market Makers Work: AMM and PMM

Validated Project

Traditional market exchange processes, involving stocks, precious metals and other assets, rely on buy and sell orders, offering various rates and forming an order book on the exchange. A user performs a trade when they agree to a listed price set by a seller. In those processes, there is always a need for a counterparty — a trading pair — to make a trade.

Automatic market makers (AMMs) are protocols powering DEXes and offering a decentralized automated approach to crypto asset exchange. The vital difference is that another trader is not required for making a swap as the protocol makes the market for users, performing the other side of a trading pair. A user interacts with a smart contract rather than another seller or buyer.

AMMs: key DEXes liquidity providers and a passive income opportunity

The term “automated market maker” refers to an asset price that is determined automatically by an algorithm which calculates token shares in a liquidity pool. A required trading pair is taken from liquidity pools — storages of cryptocurrencies on the balance of a smart contract. They are supplied by platforms’ users who provide assets to receive rewards in exchange. LP tokens (liquidity provider tokens) represent users’ share of the pool. When a trade is made on a DEX, the transaction fee is distributed between all the pool members. Liquidity provider’s rewards are made up of transaction fee proceeds.

A user’s passive income depends on their share in the total volume of liquidity: the bigger the LPs amount, the higher the reward.

Pools can be formed from two or more tokens of equal value. If a user adds liquidity to a pool of tokens A and B and A is worth $0.5 and B $1, the user has to deposit, for instance, 100 A tokens and 50 B tokens.

As said above, assets within the pool are managed by an algorithm that sets prices of digital assets. This algorithm allows tokens to be traded permissionlessly and automatically rather than in a traditional market of buyers and sellers. Liquidity pools provide an opportunity to earn stable passive income, but they involve the risk of impermanent loss. It happens when the price of assets added to a liquidity pool changes between depositing and withdrawing them, resulting in a loss for liquidity providers.

AMMs offer ways to avoid impermanent loss. The core idea is manipulating their curvature distributions and token price optimization. Some protocols use a native token, while others do not. Impermanent loss can be avoided, for instance, by transaction fees covering the difference in the value of locked and withdrawn funds or additionally minted native tokens if the transaction fees do not fully compensate for impermanent loss. Platforms enable locking pool assets on various terms: some allow providing liquidity in a specific price range, while others get rid of the dual-assets model and offer multi-token pools.

Slippage is another risk that users can face in a liquidity pool. Slippage occurs when a price quoted by a DEX changes between the time of quote and the time of swap. If a pair of tokens has a low level of liquidity, it requires collective market movements to cause changes in the pool rate. DEXes provide users with an opportunity to control slippage by setting its limits.

Overall, AMMs present various earning opportunities for users, such as interest-yielding while providing liquidity and arbitrage (when a trade takes place at a discount relative to an imbalanced pool).

Thus, AMMs play a pivotal role in driving the market where anyone can contribute to add the liquidy and benefit from it. The deeper the liquidity pools, the easier swaps can be executed, and the more healthy trading activity the market meets. As long as users are willing to perform as liquidity providers, AMMs can offer more liquidity than traditional market makers, facilitating trades between cryptocurrencies at a reasonable market price. They also lower transaction fees by removing intermediaries.

The role of PMM on DEXes

The acronym PMM can be found in different interpretations. On 1inch, it stands for Private Market Makers and refers to entities that fill buy and sell orders through the 1inch API, bringing additional trading volume.

Another acronym use case can also stand for Proactive Market Maker, when referred to the DoDo DEX protocol, copying the behavior of AMMs and human traders.

PMMs (private market makers) typically operating with CEXes can also trade at low risk on DEXes, offering RFQ features that enable users to set orders for a specific cryptocurrency.

On 1inch, the process is as follows:

When an order is placed, the limit order protocol asks the PMMs if they are willing to make an exchange. It may be advantageous for the PMMs to sign an order for a considerable amount because they can resell those assets on another platform at a profit.

“Off-chain” transactions with PMMs can be executed in OTC Mode (over-the-counter). Here you can find thorough information on how they work.

Aggregating AMM and PMM liquidity

AMMs, despite being key DeFi drivers, sometimes need more liquidity for certain transactions, and PMMs can come in handy when massive liquidity amounts are required. The 1inch Aggregation Protocol addresses possible liquidity issues by cross-checking various DEXes. It finds the best swap price by aggregating information from hundreds of platforms and automatically selecting the most favorable options.

The backbone of this protocol is the Pathfinder algorithm. It ensures an optimal swap strategy by offering the best trading paths across multiple markets, also taking gas fees into account. It is connected both with AMMs and PMMs, which facilitates scanning prices across all existing liquidity sources for every swap users make. The amount of liquidity sources currently exceeds 250. Plus, there are the most widely-used networks to choose from: Ethereum, BNB Chain, Avalanche, Polygon, Optimistic Ethereum (oΞ), Gnosis, Fantom, Arbitrum, Aurora and Klaytn. This enables users to save on gas fees and pick more suitable transaction terms.

The Pathfinder algorithm also ensures the minimal price impact for a swap. Somewhat similar to slippage, price impact refers to rapid price changes that depend on the asset’s liquidity. High liquidity normally guarantees low price impact. The difference from slippage is that price impact is caused by the user’s trade rather than market movement.

Splitting the swap across various liquidity sources guarantees the lowest price impact.

Comments

All Comments

Recommended for you

  • Matrixport: Solana’s funding rate is currently as high as 70% annualized, and a price correction may occur

    According to a report, Matrixport has released a chart today stating that Grayscale has submitted an application to convert Solana Trust into a spot ETF. Although the current asset management scale of the product is relatively small at $134 million, if approved, it will set an important market precedent for other ETF issuers. It is important to note that Solana's financing rate is currently as high as 70% annualized, which creates significant pressure on leveraged long positions. Historical experience shows that similar high financing rates are often related to price corrections, as was the case in March of this year when the SOL-USDT price fell under similar financing rate backgrounds.

  • Japanese Prime Minister Shigeru Ishiba is cautious about separate taxation of cryptocurrencies and approval of ETFs

     Japanese Prime Minister Shizuo Shima expressed caution about the unified 20% separate taxation rule for cryptocurrency in a representative issue at a plenary session of the House of Representatives. "Is it appropriate to encourage investment in cryptocurrency such as stocks and investment trusts that have investor protection regulations? Will the public understand the idea of applying separate self-assessment taxation? There are several issues that need to be resolved. We need to consider it carefully." At the same time, "whether cryptocurrency should be included in ETFs depends on whether cryptocurrency is an asset that needs to be made more easily accessible to the public."

  • AI computing economy layer GAIB completes $5 million seed round of financing, led by Hack VC, Faction VC and Hashed

    GAIB, an AI computing economic layer, announced the completion of a $5 million seed round of financing, with Hack VC, Faction VC, and Hashed leading the investment. Other participating investors include Spartan, Animoca Brands, MH Ventures, Aethir, Near Foundation, Chris Yin from Plume Network, and Lucas Kozinski from Renzo Protocol.

  • Cadenza, an investment institution focusing on blockchain and AI, has raised $50 million for its early-stage AI venture capital fund

     Cadenza, a risk investment company focusing on blockchain and artificial intelligence, announced that its early AI venture capital fund has raised $50 million. The new fund will focus on seed and pre-seed investments, with a focus on infrastructure and enterprise applications. Cadenza's investment portfolio in the Web3 field currently includes: Web3 infrastructure Validation Cloud, Malaysian digital asset exchange Hata, Web3 API platform Uniblock, L1 blockchain Linera, and encrypted wallet application Zulu.

  • Union Completes $12 Million Series A Funding, Led by Gumi Cryptos Capital and Others

    cross-chain settlement layer Union has announced the completion of a $12 million Series A financing round, led by Gumi Cryptos Capital and Longhash Ventures, with participation from Borderless Capital and Blockchange, as well as blockchain founders from Polygon, Movement, and Berachain. The funding will be used for core team expansion, partner integration, and ecosystem development.

  • Russia sentences Hydra market founder to life in prison

     Stanislav Moiseev, founder of the online black market and cryptocurrency mixing service Hydra, has been sentenced to life imprisonment by a Russian court.

  • Portal Ventures raises oversubscribed $75 million crypto fund

    , Portal Ventures, a cryptocurrency venture capital fund before the seed round, raised a $75 million cryptocurrency fund with oversubscription, supported by Chris Dixon and Marc Andreessen.

  • South Korea's ruling party may ask Yoon Seok-yeol to quit the party and propose the resignation of the entire cabinet and the dismissal of the defense minister

    According to multiple media reports on December 4th, the ruling party of South Korea, the National Power Party, held an emergency meeting to discuss the measures to be taken after President Yoon Seok-yeol announced the lifting of martial law. Several attendees stated that they had reached a certain consensus on issues such as demanding Yoon Seok-yeol's resignation from the party, the resignation of the entire cabinet, and the dismissal of the Minister of Defense. Prior to this, Han Dong-hoon, a representative of the ruling party, stated that the president's decision to declare a state of emergency was wrong.

  • Asian Equities Strong, CNH Falls Amid Tariff Threat and China Economic Work Conference Expectations

    Several Asian countries, including Indonesia, Japan, Pakistan, South Korea, Taiwan, and Thailand, experienced gains of over 1% in their equities. The offshore traded renminbi fell against the US dollar early in the trading day, which could be due to President Trump's recent tariff threat or the Euro's rough outing. The Hang Seng and Hang Seng Tech indexes rose in Hong Kong, with energy and financials leading the gains. The US government added more than 130 foreign companies to its "Entity List," which requires additional licensing, and 22 Chinese provinces have announced plans to refinance RMB 1.673tn of hidden debt. Copper and steel prices gained while treasury bond prices fell.

  • DeFi TVL exceeds $95 billion again

    According to defillama data, as of May 18, 2024, the total value locked (TVL) in DeFi has once again surpassed $95 billion. It is currently reported at $95.069 billion, an increase of nearly $12 billion from the low point of $83.04 billion 35 days ago. Among the top five protocols in terms of TVL, Eigenlayer has the highest 30-day increase, with TVL rising by 19.67% to a total of $15.455 billion.