> ## 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.

# How a buy goes

> Direct and routed buys, hops and the way back, which settings act on which part, and where a job takes each value from.

Most coins are bought in one swap: SOL for the coin. A coin quoted in another token, such as an xStock, PUMP, ORE, or a USD coin the job buys with SOL, is bought in two steps: first SOL is swapped into the coin's quote, then the quote into the coin. That is a **routed buy**, and it has settings of its own: hop slippage, route guards, and the way back when it sells.

This page shows how a buy goes and where each setting acts. The settings themselves are on [Slippage](https://docs.lasercat.gg/routing/slippage.md) and [Route guards](https://docs.lasercat.gg/routing/route-guards.md); examples are in [Scenarios and common mistakes](https://docs.lasercat.gg/routing/scenarios.md).

## Direct and routed buys

| | Direct buy | Routed buy |
| - | - | - |
| **Which coins** | Quoted in SOL. A USD coin (quoted in USDC, USDT, or USD1) when **USD funding** is **Directly**. | Quoted in a custom quote (any but SOL, USDC, USDT, and USD1). A USD coin when **USD funding** is **Through SOL**. |
| **What pays** | SOL, or the wallet's stablecoin. | SOL, or for a custom quote what **Custom funding** picks (SOL, USDC, or **Auto**). |
| **Steps** | One swap on the coin's venue. | Hops into the quote, then the coin's buy on its venue. |
| **Which slippage applies** | **Slippage** (and each copy's own). | **Hop slippage** on the hops, **Slippage** on the coin's buy. |
| **Route guards** | Do not apply. | Apply. |

A routed buy goes like this:

```
SOL ──hop──▶ hub ──hop──▶ quote ──coin's buy──▶ coin
```

* **Quote**: the token the coin's pool is paired with, such as PUMP, an xStock, or USDC.
* **Hop**: one swap on the way into the quote. One hop goes from SOL to the quote through one pool; two go through one coin in between; three through two.
* **Hub**: a coin in between SOL and the quote.
* **Coin's buy**: the last swap, the quote into the coin, on the coin's venue (the Pump curve, PumpSwap, Raydium, Meteora, and others).

The way back on a sale is the same route reversed: the coin sells for its quote, then the hops bring the quote back to SOL or USDC, whichever bought the position.

```
coin ──coin's sale──▶ quote ──way-back hops──▶ SOL or USDC
```

## Which setting acts where

> [!NOTE]
>
> Snipe jobs and copy jobs have route settings. A Snipe LP job has none.

| Part | Settings | Where in the editor |
| - | - | - |
| The coin's buy, any buy | **Slippage**, **Tip-heavy slippage**, **Priority-heavy slippage** | **Buy** → **Buy slippage** |
| A routed buy's hops | **Hop slippage** | **Buy** → **Hop slippage** |
| A routed buy's hops | **Buy any route**, the **Hops** column of **Route guards**, **Max gap: one hop vs two**, **Max hops**, **Unconfirmed pools** | **Buy** → **Route** |
| The coin's buy in a routed buy | The **Coin's buy** column of **Route guards**, **Buy smaller**, **Coin's floor on chain** | **Buy** → **Route** |
| A routed buy whose route has three hops | **On 3-hop routes**: each copy's own priority fee and tip ([Buy settings](https://docs.lasercat.gg/jobs/buy.md)) | **Buy** → **Fees per send path** |
| The coin's sale | **Slippage**, **Escalation slippage** | **Sell** → **Sell slippage** |
| A routed sale's way back | **Way-back slippage**, **Sell to** | **Sell** → **Way back** |

![Buy tab of the snipe job Alpha devs, Route section: Buy any route off, the route guards' table Hops / Coin's buy, Max gap: one hop vs two, Buy smaller, Max hops, Coin's floor on chain, Unconfirmed pools](https://mintcdn.com/lasercat/HZjQHEaj6TOf9anq/images/en/routing-buy-route.png?fit=max\&auto=format\&n=HZjQHEaj6TOf9anq\&q=85\&s=107b9c2c2263896f11a829041d9b009b)

A coin quoted in SOL, or a USD coin bought with the dollar amount, is changed by nothing in **Route**, **Hop slippage**, or **Way back**: such buys have no hops.

## Where a value comes from

One setting may be set in several places. For each dev, the engine builds the value layer by layer, and each later layer that sets it wins over the ones before:

**1. Global settings**

Where the job follows a group (that group's **Use global** switch is on), the group's values come from here, and the job's own values do not apply. See [Global settings](https://docs.lasercat.gg/jobs/global-settings.md).

**2. Job**

The job's own values: for the groups it does not follow, and for every other setting.

**3. List preset**

A dev snipe list's trade preset: what it sets (its **Set here** switch on) replaces the job's value for that list's devs. The rest **inherits**.

**4. Entry preset**

One list entry's preset: replaces the list's preset for that dev.

**5. Entry**

The entry's own settings: they win over everything else for that dev.

An example. Your global **Hop slippage** is 1%, and the job follows the **Hop slippage** group. The list "Core devs" has a preset that sets hop slippage to 3%. Devs in "Core devs" are bought with 3%; the job's other devs with 1%. If the preset does not set hop slippage, the list's devs are bought with 1% too.

Slippage, fees, and the way back resolve field by field: a preset that sets only **Way-back slippage** leaves **Sell to** alone. Route guards resolve by field too: a preset may set, say, only **Max hops**.

> [!NOTE]
>
> An open position sells with the sell and way-back settings it was bought with. An edit of the job, a preset, or the global settings applies to the next buys. To change an open position's exits, edit them on the position: see [Positions](https://docs.lasercat.gg/trading/positions.md).

## What "empty", "0", "Off", and "default" mean

| In a field | What it means |
| - | - |
| **Empty** (grey value) | The default. The panel shows it in grey right in the field, such as **3 %** for the hops' **Max price impact**. In a preset or an entry, empty means "not set here": the value comes from the layer before. |
| **0** | A real value: "no margin". A 0% slippage allows no price move at all, and the buy or sale fails at any shift. |
| **Off** on a guard | No limit of that kind: **Max price impact** **Off** checks no price impact. |
| **Off** on a switch | The feature itself is off: **Buy smaller** **Off** skips a buy that does not pass whole. |
| **(default)** beside a value | The value is not set, the default applies, and the panel names it: "down to 1 % of the buy (default)". |

Each setting's values are on [Slippage](https://docs.lasercat.gg/routing/slippage.md) and [Route guards](https://docs.lasercat.gg/routing/route-guards.md).

## Next

> [card] [Slippage](https://docs.lasercat.gg/routing/slippage.md)
>
> Buy, hop, sell, and way-back slippage, with numbers.

> [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.

> [card] [Global settings](https://docs.lasercat.gg/jobs/global-settings.md)
>
> One set of slippage, fees, and route values for many jobs.


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