> For the complete documentation index, see [llms.txt](https://help.dedust.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dedust.io/en/trade/price_impact.md).

# Price impact, Slippage, and Expert Mode

### Price impact, Slippage, and Expert Mode

Price impact and slippage both affect the result of a swap, but they happen for different reasons:

* **Price impact** comes from your own trade changing the price in the [liquidity pools](/en/liquidity/pools.md) used for the swap.
* **Slippage** happens when the pool price changes after you confirm the swap but before it is executed.

DeDust displays price impact as **value difference**: the percentage difference between the estimated USD value of the tokens you send and the tokens you receive. This makes the potential result easier to understand before you confirm a swap.

### Price impact and value difference

Price impact is the price change caused by your trade. It depends mainly on:

* the size of your swap;
* the liquidity available in the pools;
* the routes and intermediate tokens selected by [Router](/en/trade/router.md).

A large trade relative to the available liquidity produces a higher price impact and a less favorable rate.

On the [Swap](https://dedust.io/swap) page, DeDust shows the estimated USD value below both token amounts. The value difference appears in brackets next to the estimated value of the token you receive.

The value difference is color-coded:

* <mark style="color:green;">**Green**</mark> — the estimated value of the received tokens is higher than the current value of the tokens you send;
* **No color** — the estimated loss is `3%` or less;
* <mark style="color:orange;">**Orange**</mark> — the estimated loss is greater than `3%` and up to `5%`;
* <mark style="color:$danger;">**Red**</mark> — the estimated loss is greater than `5%`.

Without Expert mode, swaps with a value difference greater than 15% are restricted. DeDust displays a warning, and the swap cannot be confirmed until the price conditions improve or Expert mode is enabled.

### Slippage and slippage tolerance

Slippage is the difference between the quoted swap price and the price available when the transaction is executed.

There is a delay between confirming a swap and its execution on the blockchain. During that time, other trades can change the balances and price in the same pools.

**Slippage tolerance** is the maximum unfavorable price change you are willing to accept. If the price moves beyond this limit, the affected swap step fails instead of executing at a worse rate.

#### Slippage settings

To change the tolerance:

1. Go to **Swap** and select the gear icon.
2. Choose `1%`, `5%`, or `10%`, or enter a custom value.
3. Press **Save**.

The default slippage tolerance is `1%`. You can enter a custom value from `0.01%` to `50%`.

The **Min. receive** value on the Swap page already accounts for your slippage tolerance. It is the minimum output protected by the swap conditions.

#### Choosing a slippage tolerance

A lower tolerance gives you stronger protection against an unfavorable price change, but makes the swap more likely to fail when the market is moving.

A higher tolerance makes execution more likely, but allows the swap to complete at a significantly worse rate. Always check **Min. receive** before confirming.

At the extremes:

* with `0.01%`, even a very small price movement can cause the swap to fail;
* with `50%`, the swap may execute even if you receive only around half of the initially expected output.

> **Important:** You are responsible for the selected slippage tolerance. A high value increases the risk of an unfavorable result and permanent loss of value.

#### What happens when a swap step fails

For a direct swap, the original tokens are returned if the trade cannot satisfy the slippage condition. The [network fee](/en/protocol/fees.md#network-fees) is still charged.

Transactions on TON are not atomic. In a [multi-step route](/en/trade/router.md#routes-and-steps) such as `TOKEN A → TOKEN B → TOKEN C`, the first swap can succeed while the second one fails. If that happens, `TOKEN B` remains in your wallet instead of the original or selected output token. You can swap it separately when the price conditions are acceptable.

### Expert mode

Expert mode allows you to confirm swaps with a value difference greater than 15%. It also turns off the regular swap confirmation prompt.

This mode removes an important protection against poor rates. Use it only when you understand why the value difference is high and accept the risk of a permanent loss of funds.

#### How to enable Expert mode

1. Go to **Swap** and select the gear icon.
2. Turn on **Expert mode**.
3. Read the warning.
4. Select **I understand what I’m doing**.
5. Select **Confirm**.
6. Select **Save** in Advanced settings.

Turn Expert mode off after completing the swap that required it. Leaving it enabled makes it easier to confirm future swaps with highly unfavorable rates.
