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

# Swap

> How token swaps work in Peach — routed via Relay, executed on-chain.

Swap lets you exchange one token for another from inside Peach. Behind the scenes, a swap is a regular on-chain trade: Peach quotes you a price, you sign a transaction, and the trade executes on a decentralized exchange.

## The flow

<Steps>
  <Step title="You enter the trade">
    Pick the token you want to spend, the token you want to receive, and the amount.
  </Step>

  <Step title="Peach fetches a quote">
    Peach queries [Relay Router](https://relay.link/) for the best route across supported networks and DEXs.
  </Step>

  <Step title="You review the quote">
    The screen shows the expected output, the route, the price impact, the fees (Peach + network), and the slippage tolerance — before you sign.
  </Step>

  <Step title="You sign once">
    Your signature authorizes the on-chain transaction(s) that complete the swap.
  </Step>

  <Step title="The DEX settles the trade">
    Settlement happens on-chain at the venue Relay routed through. Peach is not on the other side of the trade.
  </Step>
</Steps>

## Who does what

| Role                                      | Who                             |
| ----------------------------------------- | ------------------------------- |
| Builds the user interface and transaction | Peach                           |
| Quotes price and route                    | Relay Router                    |
| Provides liquidity / fills the trade      | DEXs and on-chain market makers |
| Settles on-chain                          | The destination network         |
| Signs the transaction                     | You                             |

<Info>
  Relay is a cross-chain liquidity router. It can settle a swap on the same network the input token is on, or — if the better price is elsewhere — bridge through another network on the way. The route you see in the quote is the route that will be executed.
</Info>

## Fees

| Fee                       | Charged by  | Notes                                                                                                                                  |
| ------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| **Peach swap fee — 0.1%** | Peach       | Applied to the input amount of every swap.                                                                                             |
| Network gas               | The network | Required by every on-chain transaction. Peach may sponsor gas in some cases — when it does, you will see that called out in the quote. |
| DEX / LP fees             | The DEX     | Built into the price you receive (e.g., a 0.3% Uniswap pool fee shows up as worse output, not a separate line).                        |
| Bridge / solver fees      | Relay       | If the route crosses networks, the bridge cost is included in the quote.                                                               |

<Note>
  The 0.1% Peach fee is current at the time of writing and is subject to change. Any change will be reflected in the in-app quote, which is the source of truth at the time of your trade.
</Note>

## Slippage and price impact

Because swaps execute against on-chain liquidity, the price you actually get can move between the moment you accept a quote and the moment the trade settles.

* **Slippage tolerance** is the maximum unfavorable move you are willing to accept before the trade reverts. Lower is safer; too low risks the trade failing during volatile moments.
* **Price impact** is how much *your own trade* moves the market price. Large trades against thin liquidity have higher price impact — the quote will warn you when this is significant.

<Warning>
  For unfamiliar or thinly-traded tokens, double-check the quote and the route before signing. A reverted swap costs gas; a swap with bad price impact costs the trade.
</Warning>

## What Peach does **not** do

* Peach does **not** run an order book.
* Peach does **not** make markets or hold inventory.
* Peach is **not** the counterparty to your trade.
* Peach does **not** custody the input or output tokens — they go directly between your wallet and the DEX.
