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

  • If a Hong Kong spot virtual asset ETF is sold at a premium, it can be converted into Hong Kong dollars on the Hong Kong Stock Exchange

    Currently only a few Hong Kong brokers with virtual asset retail licenses can subscribe to the Hong Kong Bitcoin ETF through the new share subscription method (PD/distributor), and after the ETF officially enters the Hong Kong Stock Exchange, all hundreds of Hong Kong brokers and banks can purchase it. The approved virtual asset ETF adopts the performance of the ChiNext CF Bitcoin Index (Asia-Pacific closing price), so the profit and loss risks of cash subscription for Bitcoin ETF are basically the same as those of directly buying Bitcoin. As the exchange ratio between Bitcoin and Bitcoin ETF is fixed, if physical subscription is used in the IOP stage, that is, Bitcoin is used to subscribe to Bitcoin ETF, the relevant ETF can be exchanged for Hong Kong dollars in the exchange if it is sold at a premium after listing, and then buy back Bitcoin at the same time to earn the price difference between on-exchange and off-exchange. (Finance News Agency)

  • SEC sues Bitcoin mining company Geosyn, accusing its founder of $5.6 million fraud

    On April 26th, the US SEC filed a lawsuit against bitcoin mining company Geosyn Mining and its co-founders, accusing them of falsely reporting the number of cryptocurrency mining equipment in operation and using customer funds for personal expenses, resulting in a $5.6 million investment fraud.

  • Hong Kong Stock Exchange to Start Trading Harvest Fund’s Bitcoin and Ethereum Spot ETFs on April 30

    The Hong Kong Stock Exchange will begin trading Harvest's Bitcoin and Ethereum spot ETFs on April 30.

  • The total market value of stablecoins exceeds 158 billion US dollars, and USDT has a market share of 69.8%

    According to DefiLlama data, the total market value of stablecoins has reached 158.197 billion US dollars, with a 7-day growth rate of 0.16%. Among them, the market value of UDST is 110.426 billion US dollars, with a market share of 69.8%.

  • Bitcoin spot ETF has a cumulative net inflow of US$12.082 billion, and Grayscale GBTC has a cumulative net outflow of over US$17.1 billion

    According to Farside Investors, the cumulative net inflow of Bitcoin spot ETF has reached 12.082 billion US dollars since its launch. Among them:

  • Rune DOG•GO•TO•THE•MOON ranked first in transaction volume in the past 24 hours

    According to Ord.io on social media platform, the top 5 trading volumes for runes in the past 24 hours are:

  • CARV announces completion of $10 million Series A financing, with OKX Ventures participating

    CARV announced the completion of a $10 million Series A financing round, led by Tribe Capital and IOSG Ventures. Consensys, OKX Ventures, Fenbushi Capital, No Limit Holdings, Draper Dragon, Arweave, ARPA, MARBLEX, and others participated in the round. The aim is to build the largest modular data layer for gaming and artificial intelligence, and to maximize data innovation while ensuring that individual users can derive value from internet sharing.Jeff Ren, partner at OKX Ventures, said, "CARV's revolutionary approach is reshaping the way we manage decentralized data. Its modular cross-chain protocol and ID aggregation solution cultivate data sovereignty and integrity while emphasizing security and efficiency. We are excited about this collaboration and look forward to seeing how OKX Web3 products can better collaborate with CARV's advanced cross-chain data layer."

  • El Salvador's official Bitcoin wallet refutes rumors it was hacked

    Salvadoran official cryptocurrency wallet Chivo Wallet denies reports that its source code and over 5 million user data related to KYC procedures have been hacked. The wallet's management department clarified that its data security has not been compromised and the leaked data did not come from their system.

  • Franklin Templeton Tokenizes $380M U.S. Treasury Fund on Polygon and Stellar

    According to Cryptoslate, Franklin Templeton tokenized a $380 million US government bond fund on the Polygon and Stellar blockchains to enable peer-to-peer (P2P) transfers without intermediaries.The company launched the Franklin on-chain US government money fund (FOBXX) in the form of BENJI tokens. Each token represents a portion of FOBXX and can be traded on public Polygon and Stellar blockchains. This innovation aims to simplify transactions and expand access, allowing investors to manage their assets more flexibly through direct trading.Franklin Templeton is incorporating blockchain technology into its financial operations to enhance asset management liquidity and efficiency. The company is responding to the growing demand of financial institutions by integrating traditional financial structures with modern technological solutions.

  • UK law enforcement agencies can now confiscate crime-related crypto assets without conviction

    The UK Home Office announced in a press release on Friday that new powers to seize cryptocurrencies used in crimes have come into effect. The Home Office stated that due to these new regulations, police in the country will no longer need to make an arrest before seizing cryptocurrency holdings, making it easier to seize assets known to have been obtained through criminal means, even if seasoned criminals are able to protect their anonymity or are located overseas.