Blockchain & Cryptocurrency Glossary

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

  • search-icon Clear Definitions
  • search-icon Practical
  • search-icon Technical
  • search-icon Related Terms

Weighted Automated Market Maker (Weighted AMM)

4 min read
Pronunciation
[wey-tid aw-tuh-mey-tid mahr-kit mey-ker]
Analogy
Imagine a classic two-pan balance scale where each pan must hold an equal amount of weight for it to be balanced (this is like a 50/50 AMM pool with two tokens of equal value). Now, picture a more sophisticated, multi-pan scale or a leveraged beam balance where you can place different amounts of distinct items in different pans, and the 'balance' is maintained based on pre-set leverage ratios (the weights) for each pan. A Weighted AMM pool is like this advanced scale. Instead of just two tokens always being forced into a 50/50 value split, you can have a pool with, say, three tokens configured in ratios like 60% value in Token A, 30% value in Token B, and 10% value in Token C. When someone trades with this pool, the amounts of tokens adjust, and the 'weights' dictate how significantly the price of each token moves relative to the others to maintain the weighted product invariant.
Definition
A type of Automated Market Maker (AMM) in decentralized finance (DeFi) that allows liquidity pools to hold two or more different cryptocurrency tokens with customizable, pre-defined weights or proportions that do not have to be the standard 50/50 split found in many traditional AMMs (like early versions of Uniswap). These user-defined or protocol-defined weights significantly influence the price dynamics during swaps and determine the risk exposure of liquidity providers to the different assets within the pool. Balancer protocol was a pioneer in popularizing this concept.
Key Points Intro
Weighted Automated Market Makers offer significantly greater flexibility in the design and composition of liquidity pools, allowing for customized risk exposure, the creation of index-like portfolios, and more diverse investment strategies for liquidity providers compared to fixed-ratio AMMs.
Key Points

Customizable Token Proportions (Weights): Allows liquidity pools to consist of more than two token types and supports arbitrary, non-50/50 value weightings for these tokens (e.g., an 80% ETH / 20% DAI pool, or a 40% WBTC / 30% ETH / 30% USDC pool).

Flexible Asset Exposure for LPs: Liquidity providers (LPs) can tailor their exposure to different assets within the pool according to the defined weights, aligning with their investment outlook or risk appetite, rather than being forced into equal value exposure.

Influences Price Impact Dynamics: Swaps made against tokens that have a lower weight within the pool will generally cause a greater price impact (slippage) for a given trade size, compared to tokens with higher weights. This is because the pool has less relative liquidity of the lower-weighted asset.

Pioneered by Balancer Protocol: The Balancer protocol is particularly well-known for its extensive implementation and popularization of weighted pools (especially in its V1), allowing for pools with up to 8 tokens and fully customizable weights.

Example
An investor wishes to provide liquidity for a portfolio of three assets: Wrapped Bitcoin (WBTC), Ether (ETH), and a stablecoin like DAI, but they are more bullish on WBTC and ETH than DAI. Instead of being restricted to three separate 50/50 pair pools, they can join a single Balancer Weighted Pool specifically configured with, for example, weights of 40% WBTC, 40% ETH, and 20% DAI. This means the pool, through arbitrage, aims to maintain these value proportions among the assets it holds. If the market price of ETH rises significantly relative to WBTC and DAI, arbitrageurs will trade against the pool (selling ETH to it, buying WBTC/DAI from it) to bring its internal prices back in line with external markets, thereby rebalancing the pool towards its target weights. Liquidity providers earn trading fees during this process while maintaining their desired weighted exposure to the three assets.
Technical Deep Dive
Weighted AMMs generalize the constant product formula which is characteristic of standard 50/50 AMMs like Uniswap V2. For a liquidity pool containing $n$ different tokens, where each token $i$ has a current balance (liquidity) $B_i$ and a pre-defined, fixed weight $W_i$ (such that the sum of all weights $\sum_{i=1}^{n} W_i = 1$), the core invariant or value function $V$ that the AMM strives to keep constant (ignoring fees) during trades is often defined as: $$V = \prod_{i=1}^{n} B_i^{W_i}$$ This formula implies that for any swap to occur between two tokens in the pool (say, Token X and Token Y, which are part of the $n$ tokens), the balances of all tokens in the pool must adjust such that this weighted geometric mean of the balances remains constant. The price of one token relative to another is determined by the ratio of their balances and their weights. For example, in a two-token pool with Token A (balance $B_A$, weight $W_A$) and Token B (balance $B_B$, weight $W_B$), the spot price of A in terms of B can be derived as $ rac{B_B/W_B}{B_A/W_A}$. This design allows for several interesting use cases: * **Index-like Pools**: Pools can be created to mimic a target asset allocation, like a crypto index fund. * **Reduced Impermanent Loss (IL) Strategies**: LPs can give higher weight to assets they are more bullish on or perceive as less volatile, potentially altering their IL profile compared to a 50/50 pool. * **Liquidity Bootstrapping Pools (LBPs)**: A variation where weights can change over time, often used for initial token distribution.
Security Warning
Like all Automated Market Maker protocols, Weighted AMMs are subject to impermanent loss (also known as divergence loss). The specific characteristics and magnitude of this impermanent loss will be directly influenced by the chosen weights for each asset and the relative price volatility of the underlying assets in the pool. Smart contract risk is always a consideration when interacting with any DeFi protocol; ensure the AMM protocol has been thoroughly audited by reputable firms. Understanding the mathematical formulas behind how specific weights affect pricing, rebalancing, and potential impermanent loss is crucial for liquidity providers before committing capital.
Caveat
While offering significant flexibility, weighted pools can be more complex for users to fully understand and analyze their risk/reward profile compared to simpler 50/50 AMM pools. The rebalancing incentives, slippage characteristics, and impermanent loss profiles differ based on the specific weighting scheme. The overall effectiveness and profitability of a particular weighting strategy are highly dependent on prevailing market conditions, the price correlation between the pooled assets, and the volume of trading activity generating fees. Some weighted pool designs might also have different fee structures.

Weighted Automated Market Maker (Weighted AMM) - Related Articles

No related articles for this term.