# Slippage

## Slippage in Swap

**Slippage in swap** refers to the difference between the price you see when you submit a swap and the price you actually get when it executes on-chain. DEX prices can change rapidly during the block confirmation time, your final exchange rate may vary.

To protect users in Byreal, we allows users to set a **swap** **slippage tolerance** — the maximum price deviation you’re willing to accept. If the price moves beyond that threshold, the swap will automatically revert to prevent unexpected losses.

{% hint style="info" %}
**Example**

If you set a 1% slippage tolerance and the price changes by more than that before execution, the trade will fail automatically.
{% endhint %}

## Slippage in Liquidity Provision

**Slippage in liquidity provision** refers to the potential deviation between your **expected token deposit amounts** and the **actual amounts required** when executing an add-liquidity transaction. This occurs because V3 requires liquidity to be concentrated within specific **price ranges (ticks)**.

To manage this, Byreal allows you to set a liquidity slippage tolerance — the maximum percentage deviation from the expected amount that you are willing to deposit. If the actual execution amount exceeds your specified tolerance, the add-liquidity transaction will automatically revert.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.byreal.io/resources/knowledge/slippage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
