> For the complete documentation index, see [llms.txt](https://docs.hyperbrick.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperbrick.xyz/trade/slippage-price-impact-and-fees.md). Agents can also search and read this documentation through its [MCP server](https://docs.hyperbrick.xyz/~gitbook/mcp).

# Slippage, Price Impact, and Fees

Understanding **price impact** and **slippage** is key to mastering trades on **HyperBrick**. Built on top of **Liquidity Book**, HyperBrick differs significantly from traditional AMMs like Uniswap, so knowing how bin-based mechanics affect your trades is crucial.

## What Is Price Impact?

**Price impact** refers to how much the price moves as a result of your trade. On HyperBrick, price impact comes from how many **bins** your trade crosses, not just total volume.

* **Within a bin**, price is fixed (thanks to the constant‑sum formula), so **no price impact** occurs.
* **Crossing bins** introduces price changes incrementally—each bin stepped into slightly adjusts the execution price.

## What Causes Slippage?

**Slippage** is the difference between the expected and actual price you receive on a trade.

On HyperBrick:

* **Zero slippage** if your trade fits entirely within one bin.
* **Non-zero slippage** arises only when your trade spans multiple bins, with each bin shift affecting the average price.
* Larger trades and shallow bin liquidity increase slippage probability.

## Why Bins Matter

* **Deep, narrow bins** = more liquidity in each price step = less slippage.
* **Wide bin distribution** = bigger steps between price levels = more slippage per bin crossed.

## Managing Slippage on HyperBrick

1. **Set Slippage Tolerance**\
   Use limits (e.g., ≤0.5%) to avoid unexpected execution and sandwich attacks.
2. **Check Output Quote Carefully**\
   Review the "min received" estimate before confirming.
3. **Split Large Trades**\
   Break big trades into smaller ones to stay within fewer bins and minimize price shifts.
4. **Time Your Trades**\
   Execute during high-liquidity periods when bin depth is greatest.

## Fees

HyperBrick charges:

* **Base Fee** (e.g., 0.3%) — varies on each pool. constant across all trades in a certain pool.
* **Surge Fee** — a dynamic fee activated during high volatility to reward LPs and stabilize liquidity.
