Give me a list of functions that are suitable for constant function automatic market…
- User
Give me a list of functions that are suitable for constant function automatic market makers.
Assistant
Here's a list of functions commonly used in constant function automated market makers (CFMMs), along with their key characteristics and applications:
1. Constant Product Function
Formula:
[ x \cdot y = k ]- Description: Maintains a constant product of token reserves.
- Use Case: Basis for Uniswap and Balancer (for two assets). Prices adjust hyperbolically as reserves change, ensuring continuous liquidity.
- Key Feature: Susceptible to slippage for large trades but provides infinite liquidity at all price levels[[2]][[4]][[6]].
2. Constant Sum Function
Formula:
[ x + y = k ]- Description: Keeps the sum of token reserves constant.
- Use Case: Ideal for stablecoin pairs (e.g., USDC/DAI) with minimal price divergence.
- Drawback: Vulnerable to liquidity depletion if one asset is fully traded out[[2]][[3]][[5]].
3. Constant Mean (Geometric Mean) Function
Formula:
[ \prod_{i=1}^n R_i^{w_i} = k ]- Description: Generalizes the constant product model to ( n ) assets with weights ( w_i ).
- Use Case: Balancer’s multi-asset pools, enabling customizable portfolio ratios (e.g., 80% ETH / 20% BTC)[[1]][[5]][[8]].
4. Hybrid Sum/Geometric Mean Function
Formula:
[ \phi(R) = (1 - \alpha) \cdot \sum_{i=1}^n R_i + \alpha \cdot \prod_{i=1}^n R_i^{w_i} ]- Description: Blends constant sum and geometric mean functions via parameter ( \alpha ).
- Use Case: Curve’s stablecoin pools (e.g., USDC/USDT), balancing low slippage for pegged assets while retaining curvature for price stability[[8]].
5. Curve-Style Function
Formula:
[ \phi(R) = \sum_{i=1}^n R_i - \alpha \cdot \prod_{i=1}^n R_i^{-1} ]- Description: Optimized for stable assets by combining linear and inverse product terms.
- Use Case: Curve Finance, minimizing slippage for assets with near-1:1 exchange rates[[8]].
6. Dynamic Automated Market Maker (DAMM)
Formula:
[ \text{Adjusts liquidity dynamically using real-time price feeds and volatility data} ]- Description: Modifies the trading curve based on external market conditions.
- Use Case: Sigmadex, which concentrates liquidity near market prices during low volatility and expands it during high volatility[[4]][[5]].
7. Proactive Market Maker (PMM)
Formula:
[ \text{Mimics order-book behavior using price oracles to adjust liquidity} ]- Description: Actively shifts liquidity toward market prices to reduce impermanent loss.
- Use Case: DODO, which uses Chainlink oracles to optimize capital efficiency[[5]].
8. Virtual Automated Market Maker (vAMM)
Formula:
[ x \cdot y = k ] (applied synthetically)- Description: Uses collateralized positions instead of physical reserves.
- Use Case: Perpetual Protocol for leveraged trading with minimal price impact[[5]].
9. Constant-Utility Cost Function
Formula:
[ \sum_i p_i \cdot u(C(y) - y_i + \Pi(s)) = u(x_0) ]- Description: Maintains a constant utility level for the market maker via logarithmic utility ( u(x) = \log(x) ).
- Use Case: Theoretical frameworks for bounded-loss market makers in prediction markets[[7]].
Key Considerations
- Homogeneity: Most CFMM functions are homogeneous (scaling reserves preserves the trading condition)[[8]].
- Fees: Often integrated by adjusting ( \gamma ) (e.g., ( \gamma = 0.997 ) for a 0.3% fee in Uniswap)[[1]][[6]].
- Multi-Asset Support: Functions like the geometric mean generalize naturally to ( n )-asset pools[[5]][[8]].
These functions underpin decentralized exchanges, enabling trustless trading while balancing liquidity, slippage, and capital efficiency.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.