Understanding DLMM
This page provides a detailed explanation of Meteora's Dynamic Liquidity Market Maker (DLMM), the core mechanism powering liquidity provision on Zeitgeist. Understanding DLMM is crucial for anyone who wants to be a liquidity provider (LP).
What is DLMM?
DLMM is an advanced type of Automated Market Maker (AMM) designed for efficiency and flexibility. It's a significant improvement over traditional AMMs (like Uniswap v2) and even offers advantages over concentrated liquidity AMMs like Uniswap v3. DLMM is built on Solana, taking advantage of the blockchain's speed and low transaction costs.
Key Concepts: Bins and Active Bins
Unlike traditional AMMs that use continuous price ranges, DLMM uses discrete bins.
Bins: A bin represents a single, specific price point. Think of it like a very narrow price range that's so small it's effectively a single price. An LP can deposit liquidity into one or more bins.
Example: In a market for "Will Project X launch by December?", you might have bins at YES prices of $0.40, $0.41, $0.42, $0.43, and so on. Each of these is a separate bin.
Active Bin: At any given moment, there is only one active bin – the bin that contains the current market price. All trades are executed against the liquidity in this active bin.
(Screenshot: Show a visual representation of DLMM bins, highlighting the active bin.)
Price Movement: How Trades Shift the Active Bin
The active bin (and therefore the market price) changes when trades exhaust the liquidity available in the current active bin:
Buy Orders (Buying YES or NO): If a user places a buy order that's larger than the amount of liquidity available in the active bin, the price moves up to the next highest bin that contains liquidity.
Example: The current price of YES is $0.40 (the active bin is at $0.40). A user places a large buy order for YES shares. If there are not enough YES shares available at $0.40 to fill the entire order, the price will move up to $0.41 (the next bin with YES liquidity), and the remaining portion of the order will be filled at that price. The active bin shifts to $0.41.
Sell Orders (Conceptually, Buying the Opposite): On Zeitgeist, we simplify the concept for users:
"Buy NO": Buy order of NO shares will move down the price of YES. (increase price of NO).
Example: The current price of YES is $0.40 (the active bin is at $0.40). A user "buy NO" shares. If there isn't enough liquidity in the active bin, the price will drop down.
(Diagram: Illustrate price movement with a diagram showing bins, buy orders, and sell orders.)
Single-Sided Liquidity: Providing Only YES or NO Shares
One of the most significant advantages of DLMM is that it allows for single-sided liquidity provision. This means you can choose to provide liquidity only in YES shares or only in NO shares, depending on your belief about the narrative's outcome.
Traditional AMMs (e.g., Uniswap v2): Typically require you to provide both assets in a trading pair (e.g., ETH and USDC) in a specific ratio.
DLMM: You can choose to provide only YES or only NO. This is much more intuitive for prediction markets, where you're expressing a belief in one specific outcome.
Example: If you strongly believe the outcome of a narrative will be YES, you can deposit only YES tokens into one or more bins above the current market price. You're essentially saying, "I'm willing to sell YES shares at these higher prices because I believe the market is underestimating the probability of YES."
Liquidity Shapes in Detail:
DLMM offers pre-defined liquidity shapes that determine how your liquidity is distributed across multiple bins. These shapes offer different risk/reward profiles:
Spot:
All of your liquidity is concentrated in a single bin – the bin you choose.
Maximum Capital Efficiency: If the active bin is your chosen bin, you earn all the fees from trades at that price.
Maximum Risk: If the price moves out of your bin, you earn no fees, and you're exposed to the full extent of price movement of single sided token.
Best Suited For: LPs with very high conviction about a specific price point and a high risk tolerance.
Curve:
Your liquidity is distributed across multiple bins, following a curve shape (similar to Uniswap v3).
Balances Capital Efficiency and Risk: You earn fees as long as the active bin is within the range of your curve. The closer the active bin is to the center of your curve, the more fees you earn.
Different Curve Shapes: The specific shape of the curve (e.g., how steeply it concentrates liquidity around the center) can be adjusted.
Best Suited For: LPs who want to earn fees over a range of prices and are willing to accept some risk of the price moving outside their range.
Bid-Ask:
Your liquidity is concentrated in two groups of bins:
One group above the current market price (representing "ask" prices – prices at which you're willing to sell).
One group below the current market price (representing "bid" prices – prices at which you're willing to buy).
Mimics Traditional Order Books: This shape is similar to how liquidity is provided on traditional centralized exchanges.
Captures Volatility: You earn fees from both buy and sell orders as the price fluctuates.
Best Suited For: LPs who want to actively participate in price discovery and capture fees from short-term price movements.
Flat:
Your liquidity is evenly distributed across a specified range of bins.
Lowest Capital Efficiency: You earn a smaller portion of the fees compared to other shapes.
Lowest Risk: You earn some fees as long as the active bin is within your specified range, regardless of where it is within that range.
Best Suited For: LPs who want to provide broad liquidity coverage and are less concerned about maximizing fee earnings.
(Diagram: Show a visual representation of each of the four liquidity shapes.)
Choosing the Right Liquidity Shape for Your Strategy:
The best liquidity shape depends on your:
Belief about the Narrative: How confident are you in your prediction? How likely do you think the price is to move significantly?
Risk Tolerance: How much risk are you willing to take?
Time Horizon: How long are you willing to provide liquidity?
Capital: How much do you have to invest.
Here's a general guideline:
Spot
Highest
Highest
High conviction, short-term, high risk tolerance
Curve
Medium
Medium
Moderate conviction, medium-term
Bid-Ask
Medium
Medium
Capturing volatility, active trading
Flat
Lowest
Lowest
Low conviction, long-term, low risk tolerance
It's recommended to start with the Curve or Flat shapes if you're new to DLMM, and then experiment with other shapes as you gain experience. Remember that Time-Decaying Liquidity Bins (TDLB) will also affect your earnings over time.
This detailed explanation of DLMM provides the foundation for understanding how liquidity provision works on Zeitgeist. The next steps are to learn how to practically provide liquidity using the platform's interface (covered in the "Step-by-Step Guide to Providing Liquidity" page) and how to manage your positions over time.
Last updated