> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lasercat.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Slippage

> Buy, copy, hop, sell, and way-back slippage: what each one bounds, in which units, what empty, 0, and 100% mean, with worked numbers.

Slippage is how much worse than its quote a trade may come out before it fails. LaserCat sets it apart for each part of a trade: the coin's buy, a routed buy's hops, the coin's sale, and a routed sale's way back. One slippage never spends another's margin.

What hops and the way back are: [How a buy goes](https://docs.lasercat.gg/routing/overview.md).

## At a glance

| Setting | What it bounds | Units and range | Empty / a new job |
| - | - | - | - |
| **Slippage** (buy) | The fewest coins the buy must get | Percentage 0–100%, or budget ahead (SOL and \$) | 10% |
| **Tip-heavy slippage**, **Priority-heavy slippage** | The same, for one copy of the buy | As **Slippage** | **buy's** |
| **Hop slippage** | The least quote the hops must deliver | Percentage 0–100%, or SOL ahead | **Route's own**: 0.5% for one hop, 0.75% for two |
| **Coin's floor on chain** | Whether the coin's minimum follows what the hops actually delivered | On / Off | On |
| **Slippage** (sell) | How far the price may move against the coin's sale | Percentage 0–100% | 10% |
| **Escalation slippage** | How far a retry of a failed stop-loss, trailing, or liquidity-loss sale widens the slippage | Percentage, at least the sell **Slippage** | 10% |
| **Way-back slippage** | The least SOL or USDC the way-back hops must return | Percentage 0–50% | 1% |
| **Sell to** | Where a routed sale ends | **Origin** / **Quote token** | **Origin** |

"A new job" is what a job starts with when made without a template. Recipes, templates, and global settings may give other values.

Where each row sits in the editor: [How a buy goes](https://docs.lasercat.gg/routing/overview.md#which-setting-acts-where). In [global settings](https://docs.lasercat.gg/jobs/global-settings.md) they fall into groups:

* **Buy slippage**: the buy's slippage and each copy's own.
* **Hop slippage**: the hop slippage.
* **Route**: the coin's floor on chain, with the rest of the **Route** section.
* **Sell slippage**: the sell slippage and the escalation slippage.
* **Way back**: the way-back slippage and **Sell to**.

## Buy slippage

The buy's **Slippage** on the **Buy** tab sets the fewest coins the buy must get. If it would get fewer, the buy fails, costing only its network fee.

![Buy tab, Buy slippage: Slippage as Budget ahead, 3 SOL and \$500, each copy's own slippage set to the buy's](https://mintcdn.com/lasercat/HZjQHEaj6TOf9anq/images/en/routing-buy-slippage.png?fit=max\&auto=format\&n=HZjQHEaj6TOf9anq\&q=85\&s=e79892288fe5ccd8099a3a39b99ea112)

Two forms:

* **Percentage**: how far under the quote the output may fall, 0 to 100%. Example: the quote is 2,000,000 tokens and the slippage 10%. The buy lands if it gets at least 1,800,000 tokens.
* **Budget ahead**: how much others may buy before you, the dev's bundle included; the minimum is counted as if those buys had landed first. It holds two amounts, by what the buy pays: **Paid in SOL** for a buy paid in SOL (a USD coin bought through SOL too), and a dollar amount for a buy paid in dollars. Example: **Budget ahead** 3 SOL. If other buys of 3 SOL or less land in the block before yours, yours lands; if more, it fails.

| Value | What happens |
| - | - |
| **0%** or a budget of 0 | No margin: any buy ahead of you or any price move fails yours. |
| **100%** | The buy accepts any number of tokens: no protection. |
| Budget ahead, **Own \$ amount** off | A buy paid in dollars takes the SOL amount in dollars, at LaserCat's shared SOL price, in whole cents: the panel shows "from SOL: about \$…". With no current SOL price such a buy is skipped: Activity shows **USD rate stale**. |

Where the job pays SOL for every coin, or dollars for every coin, the panel marks the amount its buys never take "not used".

The engine may refuse a buy whose slippage is above its ceiling: Activity shows **Above the slippage ceiling**.

### A copy's own slippage

Each buy goes out as two copies, tip-heavy and priority-heavy, and only one can land. Each copy may have its own slippage: **Tip-heavy slippage** and **Priority-heavy slippage**.

* **buy's** (the default): the copy takes the buy's **Slippage**, shown beside it.
* **Percentage** or **Budget ahead**: the copy's own.

Each copy lands at its own price, so you can, say, send a tight tip-heavy copy (5%) and a wider priority-heavy one (15%). More on the copies: [Buy settings](https://docs.lasercat.gg/jobs/buy.md).

## Hop slippage

*Routed buys only.* Before the coin's buy, the hops swap SOL (or USDC) into the coin's quote. **Hop slippage** sets how far under their quote the hops' delivery may fall. If the hops deliver less, the buy fails at the hops, costing only its fee.

![Buy tab, Hop slippage: its form picker open, Route's own, Percentage, SOL ahead](https://mintcdn.com/lasercat/HZjQHEaj6TOf9anq/images/en/routing-hop-slippage.png?fit=max\&auto=format\&n=HZjQHEaj6TOf9anq\&q=85\&s=b472e166ee905ac5ac116c59c45d5358)

Three forms:

| Form | What it means |
| - | - |
| **Route's own** (empty) | The route's margin: 0.5% for one hop and 0.75% for two. |
| **Percentage** | 0 to 100% under the hops' quote. |
| **SOL ahead** | How much SOL of other buys may go through this route before yours. A thin pool's floor widens with it, a deep pool's stays tight. |

An example. A coin quoted in PUMP, a 1 SOL buy. The router quotes 1 SOL → 50,000 PUMP.

| Hop slippage | The hops must deliver at least | If they deliver 49,200 PUMP |
| - | - | - |
| **Route's own**, one hop (0.5%) | 49,750 PUMP | The buy fails at the hops |
| 2% | 49,000 PUMP | The hops pass, then the coin's buy |
| 0% | 50,000 PUMP | The buy fails at the hops |

The coin's own slippage stays its own: it is counted from what the hops are *expected* to deliver, and a move on the hops does not take it (with **Coin's floor on chain** on, below).

> [!WARNING]
>
> **Past 5%** the margin only lowers the hops' floor: a later hop spends all that an earlier one delivered.
>
> **At 100%** the hops' floor is the quote's smallest unit, almost none. A coin on Raydium CPMM or Meteora DAMM v2, and a Meteora DBC coin whose buy may take what its curve has left, may be refused at 100%. Where the engine buys such a coin in one transaction, it buys it at 100% and keeps none of the quote; otherwise nothing is left for the coin, and Activity says **100% hop slippage leaves nothing for this coin** and links to this setting. Lower the hop slippage to buy such coins everywhere.

Top-ups and copy add-ons never read **Hop slippage**: they take the route's own margin.

## Coin's floor on chain

*Routed buys only.* A row in the **Route** section. It decides what the coin's minimum is counted from when the hops did not deliver exactly their quote.

* **On** (the default): the coin's minimum is checked against what the hops actually delivered, so a hop that delivers a little less no longer fails a good buy. **Slippage** holds the coin, **Hop slippage** holds the hops, and the worst you accept is both together.
* **Off**: a fixed minimum, counted from the hops' quote. A shortfall on the hops then spends the coin's slippage, and a hop that delivers a little less may fail the buy.

Beside the row the panel shows **Worst together**: how far under the quote the result may end once both margins are spent.

`Worst together = 1 − (1 − hop slippage) × (1 − coin slippage)`

| Hop slippage | Coin slippage | Worst together |
| - | - | - |
| 2% | 10% | 11.8% |
| 5% | 10% | 14.5% |
| **Route's own** | 15% | up to 15.64% (with 0.75% for two hops) |

Going on with the example above: at 50,000 PUMP the coin quotes 2,000,000 tokens, the coin's slippage is 10%, the hop slippage 2%. The hops delivered 49,000 PUMP (−2%). With **On** the coin's minimum is 1,800,000 × 0.98 = 1,764,000 tokens, 11.8% under the quote, and the coin keeps its whole 10%: the buy fails only if the coin's price moves more than 10%. With **Off** the minimum stays at 1,800,000 tokens although 49,000 PUMP buys fewer coins: the buy fails once the coin's price moves about 8%, because the hops' shortfall took 2% of the coin's margin.

![Global settings, Route group: Coin's floor on chain on, beside it Worst together: up to 15.64%](https://mintcdn.com/lasercat/HZjQHEaj6TOf9anq/images/en/routing-floor.png?fit=max\&auto=format\&n=HZjQHEaj6TOf9anq\&q=85\&s=64fe65accc482846a531b0d2108c4c58)

Fine points:

* Past 90% hop slippage the coin's floor on chain is a little tighter than both together (at most 0.15% at 99%), and at 100% it stays fixed.
* A coin with a transfer fee always keeps a fixed minimum.
* A buy whose worst together is above the engine's slippage ceiling may be refused.

## Sell slippage

The **Slippage** on the **Sell** tab is how far the price may move against the coin's sale, 0 to 100%. A new job's is 10%. A position sells with the slippage it was bought with.

![Sell tab: Sell slippage (Slippage 15%, Escalation slippage up to 25%) and Way back (Way-back slippage empty, 1%; Sell to: Origin)](https://mintcdn.com/lasercat/HZjQHEaj6TOf9anq/images/en/routing-sell-slippage.png?fit=max\&auto=format\&n=HZjQHEaj6TOf9anq\&q=85\&s=8b9a793d49030bd06391bd3984a90769)

At 100% a sale goes at any price, and the row warns so. A coin of a custom quote on Raydium CPMM or Meteora DAMM v2 may then sell into its quote alone, and the quote stays in the wallet; a Raydium AMM v4 coin of a custom quote always does.

### Escalation slippage

A stop-loss, trailing, or liquidity-loss sale that fails on chain is retried, and each retry may widen the slippage, never past **Escalation slippage**. It is at least the sell **Slippage**. Other sales never widen it.

Example: **Slippage** 15%, **Escalation slippage** up to 25%. The stop-loss goes out at 15%; if it fails, retries try wider, up to 25%.

With **Escalation slippage** equal to **Slippage**, a retry keeps the same slippage: the row says "· no escalation: the bounds equal the base values". A new job has both at 10%.

A retry widens only the coin's sale. It never touches **Way-back slippage**.

## Way-back slippage

*Routed sales only.* A coin of a custom quote, or a USD coin bought with SOL, first sells for its quote; then the way-back hops bring that quote back to SOL or USDC, whichever bought the position. **Way-back slippage** is the slippage on those hops, apart from the coin's own sale.

| Value | What happens |
| - | - |
| Empty | 1% (shown in grey). |
| 0 to 50% | The way-back hops must return at least their quote less this. |
| **0%** | No room on the hops: any price move fails the sale. |

Example. The coin sold for 40,000 PUMP, which the router quotes at 0.8 SOL. With 1% way-back slippage the hops must return at least 0.792 SOL; with 3%, at least 0.776 SOL.

A coin quoted in SOL, or a USD coin bought with the dollar amount, has no way back: its sale has no hops.

## Sell to

*Routed sales of a custom quote's coin only.* Where the sale ends.

* **Origin** (the default): back to what bought the coin: SOL, or USDC for a position bought with USDC. A sale with no route back in one transaction, or one the router holds for about a minute, ends in the quote: it stays in this wallet, valued at the entry's rate.
* **Quote token**: the coin sells for its quote alone, with no way back. The quote token stays in this wallet until you move it: no command sells or sweeps it. The position shows how much stayed in the quote.

**Sell to** is set at the buy: an edit leaves open positions as they were bought. It does not change coins quoted in SOL, USDC, or USD1.

> [!WARNING]
>
> With **Quote token**, the sale's proceeds stay in the quote, not in SOL. Do not turn it on unless you mean to hold the quote.

## Next

> [card] [Route guards](https://docs.lasercat.gg/routing/route-guards.md)
>
> Which routes a buy accepts, and what Buy any route does.

> [card] [Scenarios and common mistakes](https://docs.lasercat.gg/routing/scenarios.md)
>
> Ready setups, and what passes or gets skipped.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.