Skip to Content
Stacks Pools

Comparing CLMM and HODLMM

How Zest Protocol CLMM compares with Bitflow’s HODLMM, which also divides prices into bins: what a bin is in each design, and how each moves the price.

Two Kinds of Bin

Zest Protocol CLMM and Bitflow’s HODLMM, both on Stacks, divide a pool’s prices into bins. They differ in what a bin is.

In Zest Protocol CLMM, each bin is a bounded constant-product curve between its two edges, the same curve a Uniswap v3 position one bin wide trades on. The price moves with every trade inside a bin and continues into the next. See How Concentrated Liquidity Works for the bins in detail.

HODLMM follows the Liquidity Book design, which Trader Joe introduced and Meteora’s DLMM uses on Solana: each bin is a constant-sum pool that trades at one fixed price. A trade fills a bin at that price until the bin runs out, then moves to the next bin.

A bin that trades at one fixed price is a price level in an order book. Tokens above the active bin are offers to sell at those prices, tokens below it are offers to buy, and the providers in a bin share its fills pro rata. HODLMM is an order book of pooled price levels; Zest Protocol CLMM is a set of curves.

One trade buying through four bins. Constant-sum bins each hold one fixed price, so the price climbs a staircase. Zest Protocol CLMM bins each hold a constant-product curve, so the price rises along one continuous curve, the same curve a Uniswap v3 position trades on.

Side by Side

Zest Protocol CLMMHODLMM
Inside a binA constant-product curve on virtual reservesA constant sum at one fixed price
How the price movesWith every trade, inside a bin and across binsOne bin step at a time, when a bin empties
What a bin behaves likeA small concentrated liquidity poolA resting order at one price
Bin width1%, 5%, 10% or 20%1 to 50 basis points
Prices a pool can quoteAny price from 2⁻⁶⁴ to 2⁶⁴1,001 bins around the price set when the pool was created
Shaping liquidityEach bin is already a curve; a range of bins builds a shapeAn amount at every price level of the shape
Familiar fromUniswap v3 and the concentrated liquidity exchanges like itOrder books, Liquidity Book and DLMM

The Difference in Short

Both designs have their place. An order book quotes exact prices level by level. Concentrated liquidity quotes a curve: one deposit gives depth across a whole range, and the price moves continuously as it trades.

Last updated on