<aside>
<aside>
⭐️HODLMM Beginner’s Bootcamp (Self-Guided)
</aside>
<aside>
INSTRUCTOR VIEW
‣
‣
‣
‣
</aside>
</aside>
<aside>
</aside>
https://youtu.be/-qqO4XGf5qc?si=yqY4Yl5ovh6SQqMx&t=303
To achieve concentrated liquidity, the continuous spectrum of price space has been partitioned with price bins. Price bins are the boundaries between discrete areas in price space.
A bin is a container that holds liquidity at a specific price point within a pool. Think of it like a bucket sitting at one spot on a price ladder.
What-are-BINS-v6-LATESTS---HODLMM.mp4
What can a bin hold?
How swaps work with bins:
Trades that occur using the tokens in the Active Bins have Zero Slippage or Price Impact.
<aside> 💡
Want to learn more? Read more about **Slippage & Price Impact.**
</aside>
A bin step is simply the difference in price between 2 consecutive bins. The bin step for any given pool is determined by basis points. Think of it like steps on a staircase — each step takes you to a slightly different price level.
How it works:
Quick examples:
Price bins function as boundaries for liquidity positions. When a position is created, the provider must choose the bins that will represent their position's borders.
Bins are spaced such that each bin represents a specific price point. Unlike continuous curves, trades execute at the exact bin price when liquidity is available.
The spacing and distribution of bins depends on the selected strategy:
Beyond the three pre-configured strategies, LPs can define custom bin layouts to implement specific market-making strategies. This allows for precise control over liquidity distribution.
When a swap size exceeds the liquidity in a single bin, the trade will consume liquidity from multiple bins sequentially. Each bin crossed may have a different price, resulting in slippage only when crossing bin boundaries.
Each bin maintains: