<aside>

HOME

<aside>

⭐️HODLMM Beginner’s Bootcamp (Self-Guided)

</aside>



<aside>

INSTRUCTOR VIEW

</aside>


</aside>

<aside>

Untitled

</aside>

https://youtu.be/-qqO4XGf5qc?si=yqY4Yl5ovh6SQqMx&t=303

Overview

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.

What Are Bins?

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:

  1. Swaps happen inside the active bin, exchanging one token for the other
  2. Once all of one token is converted, the price moves to the next bin
  3. Key benefit: Swaps within a single bin have zero slippage — making the pool more attractive to traders.

Zero Slippage Within 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>

What are Bin Steps?

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:

Bin Mechanics

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.

Bin Distribution

The spacing and distribution of bins depends on the selected strategy:

Custom Bin Layouts

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.

Crossing Bins

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.

Bin State

Each bin maintains: