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

  • Tokenization platform AgriDex completes $5 million Pre-Seed round of financing

    AgriDex, a tokenization platform on the Solana blockchain, announced the completion of a $5 million Pre-Seed round of financing, led by Endeavor Ventures, with participation from African Crops Limited, Oldenburg Vineyards, and former Goldman Sachs and Citadel executive, Hank Oberoi. It is reported that AgriDex is expected to launch its platform and token, AGRI, in the third quarter of this year. According to its white paper, AgriDex has reserved 5% of the total token supply, or 50 million tokens out of 1 billion tokens, for airdrops.

  • UXUY Completes $7 Million Pre-A Round of Financing, with Investments from Binance Labs, Bitcoin Magazine, and Other Institutions

    UXUY, the next-generation decentralized multi-chain trading platform incubated by Binance Labs, announced the completion of a $7 million Pre-A round of financing. Since its establishment, its total financing amount has exceeded $10 million. UXUY is an important builder of the Bitcoin ecosystem, and more than 100,000 traders use Bitcoin Lightning Network services through UXUY. UXUY's current round of financing has received investment from well-known institutions in Asia, North America, and Europe, such as Binance Labs, UTXO Management (Bitcoin Magazine), JDI Ventures, Bixin Ventures, SWC Global, Matrix Partners, CMS Holdings, Dewhales Capital, Comma3 Ventures, Satoshi Labs, YBB Capital, GBV Capital, Web3Vision, Pentos Ventures, NGC Ventures, Alti5, Metalpha, and GSR. The funds raised by UXUY in this round will be used for the construction of the Bitcoin ecosystem infrastructure, and will be committed to promoting the efficient and low-cost trading of Lightning Network Taproot Assets, Ordinals BRC-20, Runes, and other assets. Jordan, co-founder of UXUY, said: "We are pleased to be strategic partners with all investors! This year, we have successfully built a bridge between the Bitcoin Lightning Network and the multi-chain ecosystem. UXUY will continue to promote the use cases and popularization of the Lightning Network in trading scenarios, and make more contributions to the Bitcoin ecosystem." According to RootData, a Web3 asset data platform, UXUY is a next-generation decentralized multi-chain trading platform based on MPC wallets. UXUY actively participates in the construction of the Bitcoin Layer2 ecosystem, fully integrates into the Bitcoin Lightning Network and Taproot ecosystem, provides Lightning Address DID services to users, and becomes an important bridge connecting the Bitcoin and Ethereum ecosystems. As a decentralized multi-chain trading platform, UXUY provides immediate cross-chain trading services for Coin, Token, and Inscription among public chains through the establishment of uPool.

  • Taiwan's administrative agency passed four new anti-fraud laws to bring cryptocurrency traders under control

    It was announced that Taiwan's administrative management agency has passed the "New Anti-Fraud Law" to regulate cryptocurrency traders. In the future, businesses or individuals providing virtual asset services or third-party payment services must complete anti-money laundering measures and register their services or log in. Failure to do so may result in a maximum of 2 years in prison or a fine of up to NT$5 million. Businesses or individuals outside of Taiwan providing virtual asset or third-party payment services must register their companies or branches according to company law and complete anti-money laundering measures and service registration or login. Otherwise, they are not allowed to provide virtual asset services or third-party payment services in Taiwan. Qiu Shuzhen, the deputy chairman of Taiwan's financial regulatory agency, stated that there are currently around 60 to 70 cryptocurrency traders in the market, of which 25 have passed the anti-money laundering review by the financial regulatory agency. In the future, all traders will be required to declare and undergo review, and a cryptocurrency traders' association will be established for legal, administrative, and association management. Accounting professionals will also be enlisted to assist with internal control.

  • EigenLayer TVL falls back to $14.794 billion

    According to DefiLlama data, the total value locked (TVL) in Ethereum's re-staking protocol EigenLayer has fallen below $15 billion, currently at $14.794 billion.

  • The EU is considering including cryptocurrencies in the 12 trillion euro investment market, and its impact may far exceed that of US ETFs

    The European Securities and Markets Authority (ESMA) is consulting with the investment product advisory industry and experts on whether cryptocurrency assets should be included. This move could open up a broader market for cryptocurrencies, far exceeding the market size of spot Bitcoin ETFs. The plan aims to expand the scope of UCITS (EU Transferable Securities Collective Investment Scheme), with the UCITS market reaching as high as €12 trillion. If successful, this would be a key step in mainstreaming cryptocurrency assets in Europe.

  • SlowMist: The hacker who stole 1,155 WBTC may be from Hong Kong

    According to SlowMist analysis , the IP address associated with the theft of 1155 WBTC has been traced to Hong Kong (VPN use cannot be ruled out). Earlier reports indicated that a certain address was suspected to be a victim of phishing attacks and lost 1155 WBTC, worth 71 million USD. Subsequently, the fraudsters sold all 1155 WBTC and exchanged them for 22960 ETH, and used a large number of wallet addresses to send and launder the funds.

  • Web3 game developer Seeds Labs completes $12 million seed round of financing, with participation from Solana Foundation and others

    According to Cointelegraph, Web3 game developer Seeds Labs has announced the completion of a $12 million seed round financing, with participation from Avalanche's Blizzard Fund, Solana Foundation, Krust, Hashkey Capital, UOB Ventures, Signum Capital, IVC, and Emoote.It is reported that Seeds Labs, a Solana ecosystem game infrastructure developer, was established in 2021, and its Web3 game Bladerite is scheduled to be released this month.

  • The total subscription volume of Hong Kong Bitcoin ETF yesterday was 101.6, and the Ethereum ETF showed net redemption for two consecutive days

    The Hong Kong Bitcoin spot ETF had a net purchase of 101.6 bitcoins and a total holding of 4350 bitcoins on May 8th. The daily trading volume was 2.67 million US dollars, and the total net assets were 270 million US dollars. The daily BTC purchase came from Bosera HashKey and Huaxia Bitcoin ETF.

  • Trump announces he will accept cryptocurrency donations for his presidential campaign

    Donald Trump announced that he is accepting cryptocurrency as a form of donation for his presidential campaign.

  • Uniswap founder: Founders and VCs need to stop valuing startups and pre-coin crypto projects at more than $1 billion

    Uniswap founder Hayden Adams posted on social media that cryptocurrency founders and venture capitalists need to stop valuing projects at over $1 billion in the early stages of development and before tokens have been released, until they are truly worth that valuation. Building something worth 7-9 figures is an incredible achievement, and not every project needs to be a unicorn at launch. Additionally, Hayden Adams said, perhaps it's naive, but I think raising funds as a founder at a fair valuation (real talent wants upside) and investing at a fair valuation as a VC (LPs want upside) can make more money. It's just harder to do it that way.