Loading…
Loading…
28/02/2025, 04:40:25 am

Market makers are entities providing liquidity for a crypto asset tradable on an exchange. This can be done by buying and selling assets from their accounts to make a profit, from the gap between the highest buy offer and lowest sell offer. This crypto trading activity creates liquidity while reducing the price impact of larger trades.
Automated Market Maker (AMM) helps in the exchange of cryptos by directly connecting the users without requiring an intermediary. AMM incentivizes users to become Liquidity Providers (LPs) in exchange for a share of transaction fees and free tokens. Meanwhile, AMM protocols like Uniswap regularly witness high liquidity, competitive volumes, and an increasing number of users. Instead of using an order book, the pricing of the assets is determined based on the pricing algorithm. AMM-based DEXs are popular in the crypto trading communities, providing deep liquidity for an extensive range of digital tokens.
Unlike centralized exchanges, DEXs try to avoid the influence of intermediaries in crypto trading. DEXs promote autonomy such that users can start trading directly from non-custodial wallets, with complete control over the private key. DEXs replace conventional order matching systems and traditional order books with autonomous protocols called AMMs.
AMM in crypto trading uses smart contracts to define the price of assets and provide liquidity. Instead of trading against counterparties, users are trading against the liquidity locked inside smart contracts called liquidity pools. With AMMs, any entity can become a Liquidity Provider (LP) as long as it meets the requirements hardcoded into the smart contract. To incentivize the LP, AMMs provide a reward of LP tokens. When an LP wishes to exit from a pool, they could redeem their LP token and receive their share of transaction fees.
Also, AMMs offer governance tokens to LPs and traders. A governance token allows the holder to own voting rights on issues relating to the control and development of the AMM protocol. The prices of crypto assets on an AMM automatically vary depending on the demand. Examples of AMM include Bancor, Uniswap, Balancer, and Curve.
AMMs use the mathematical equation for balancing the ratio of assets in the liquidity pools and eliminating discrepancies in the pricing of pooled assets. Many DeFi exchange protocols use a simple x*y=k equation to set the mathematical relationship between the particular assets in the liquidity pools. x represents the price of Asset ‘A’, y denotes the price of Asset ‘B’, and k is a constant. The liquidity pools always maintain a state whereby the product of the price of Assets ‘A’ and ‘B’ is always equal.
An Ethereum (ETH)/Tether (USDT) liquidity pool can be used as a case study. When traders buy ETH, USDT is added to the pool and ETH is removed from it. This causes a fall in the amount of ETH in the pool, causing increase in the price of ETH to fulfill the balancing effect of x*y=k. In contrast, with the addition of more USDT to the liquidity pool, the price of USDT decreases. While buying USDT, the price of ETH falls in the liquidity pool during the rise in the price of USDT.
When large orders are placed in AMMs and a substantial amount of a token is removed or added to a pool, it can cause noteworthy inconsistencies to appear between the asset’s price in the liquidity pool and its market price.
Uniswap uses x*y=k. Balancer uses a complex form of mathematical relationship that lets users combine up to 8 digital assets in a single liquidity pool. Curve implements a mathematical formula appropriate for pairing stablecoins or similar crypto assets.
Liquidity is vital for AMMs to function properly. Underpinning AMMs are liquidity pools, a collection of crypto assets. Liquidity providers are users who deposit crypto assets to the pools. If an AMM doesn’t have an adequate liquidity pool, it can create a huge price impact while buying and selling crypto assets on the DeFi, leading to impermanent loss and capital inefficiency. Liquidity pools that are not adequately funded are vulnerable to slippages. To mitigate slippages, AMMs encourage users to deposit assets in liquidity pools.
Constant Function Market Makers (CFMMs), such as Constant Product Market Makers (CPMMs), Constant Sum Market Makers (CSMMs), and Constant Mean Market Makers (CMMMs), are a class of first-generation AMMs popularized by protocols.
In non-custodial AMMs, user deposits are pooled within a smart contract so that any trader can use the deposits for token swap liquidity. Users trade against the smart contract as opposed to directly with a counterparty as in order book exchanges.
CPMM
CPMM is the first type of CFMM popularized by Bancor, the first AMM-based DEX. CPMMs are based on the function x*y=k. It establishes a price range for two tokens based on the token liquidity. During an increase in the supply of token X, the token supply of Y should decrease, and vice-versa, to maintain the constant K. When plotted, the result is a hyperbola where liquidity is always available but at increasingly higher prices, approaching infinity at both ends.
CSMM
CSMM is ideal for zero-price-impact crypto trading but does not provide infinite liquidity. CSMMs follow the formula x+y=k, which creates a straight line when plotted. The arbitragers are allowed to reduce the reserves if the off-blockchain reference price between cryptos is not 1:1. This could destroy one side of the liquidity pool, leaving all of the liquidity existing in one of the assets thus leaving no more liquidity for traders. Hence, CSMM is rarely used by AMMs.
CMMM
CMMM creates AMMs with more than two tokens. This AMM is weighted beyond the standard 50/50 distribution. The weighted geometric mean value of each reserve stays constant. For a liquidity pool with three assets ‘x’, ‘y’, and ‘z’, the mathematical equation is (x*y*z)^(?)=k. This allows for variable exposure to different assets in the pool and enables swaps between them.
Impermanent Loss
Impermanent loss is the difference in value over time between depositing tokens in an AMM versus holding those tokens in a wallet. This loss occurs when the market price of tokens deviates in any direction. As AMMs don’t automatically adjust their exchange rates, an arbitrageur is needed to buy the underpriced crypto assets or sell the overpriced crypto assets until the prices provided by the AMM match the external market price. The profit mined by arbitrageurs is tapped from the pockets of LPs, creating a loss.
Low Capital Efficiency
Traditional AMM designs require large amounts of liquidity to achieve the same level of price impact as an order book-based exchange. A large portion of AMM liquidity is available only when the pricing curve starts to go exponential. Most liquidity will never be used by coherent traders due to the extreme price impact.
In this situation, AMM LPs do not have any control over the price points offered to traders. Hence, AMMs are referred to as “lazy liquidity”. In the meantime, market makers on order book exchanges can exactly control the price points. This leads to high capital efficiency but with the trade-off of requiring active participation and oversight of liquidity provisioning.
Hybrid CFMMs
With the progress of AMM-based liquidity, there is the emergence of advanced hybrid CFMMs that combine multiple functions and parameters to achieve specific behaviors, such as adjusted risk exposure for LPs or reduced price impact for traders. Curve AMMs combine CPMM and CSMM using an advanced formula to create denser liquidity pockets for reducing price effects inside a trading range.
Hybrid CFMMs allow low-price impact trades by using an exchange rate curve that is regularly linear. The exchange rate curve becomes parabolic only once the liquidity pool is pushed to its limits. Liquidity providers earn more in fees with efficient capital usage, while arbitrageurs still profit from rebalancing the pool.
Curve offers low-price-impact swapping between tokens with a relatively stable 1:1 exchange rate. It is mainly designed for stablecoins. But Curve has recently launched support for more volatile token pairs with similarly concentrated liquidity.
Dynamic AMM (DAMM)
Using a DAMM model, the implied volatility is leveraged to help dynamically distribute liquidity along the price curve. By integrating multiple dynamic variables into its algorithm, a robust market maker adaptive to fluctuating market conditions is created. During periods of low volatility, there is a focus on liquidity near the market price and increase capital efficiency, and then expand it during periods of high volatility to help protect traders from impairment loss.
Proactive Market Maker (PMM)
Also aiming to increase liquidity on its protocol, a PMM that mimics the human market-making behaviors of a traditional central limit order book is used. The protocol uses globally accurate market prices to proactively move the price curve of each asset in response to market changes, increasing the liquidity near the current market price. Ultimately, this facilitates efficient trading and reduces the impairment loss for LPs.
Virtual AMM (vAMM)
vAMM reduces price impact, alleviates impermanent loss, and allows single token exposure for synthetic assets. vAMMs use the same formula as CPMMs, but traders deposit collateral to a smart contract instead of depending on a liquidity pool. By trading synthetic assets rather than the underlying asset, users can gain exposure to the price movements of a wide variety of crypto assets efficiently. But users holding an open position in a synthetic asset are susceptible to risks of collateral liquidations if the price moves against them.
AMMs play a vital role in the DeFi ecosystem and enable any user to create markets seamlessly and efficiently. Despite with own limitations compared to order book exchanges, the innovation brought by AMM to crypto is priceless.
AMMs are still in their initial stages. Present AMMs are elegant in design, but quite limited in features. In the future, there will be an evolution of more innovative AMM designs leading to lower fees, less friction, and better liquidity for each DeFi user.
Download KoinBX Android App | Download KoinBX iOS App
Disclaimer: Any financial and crypto market information shared should not be considered investment advice. It is for informational purposes only. Conduct your own research before making investment decisions. Crypto trading is unregulated and highly risky. There may be no regulatory recourse for any loss of such transactions.
Share this article with your friends and community!