> ## Documentation Index
> Fetch the complete documentation index at: https://flake-32766f49.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# First swap

# Your First Swap

## Step-by-Step

1. Open `Swap`.
2. Click the top token selector and choose your source token.
3. Click the bottom token selector and choose your destination token.
4. Enter source amount.
5. Wait for quote generation.
6. Click `Swap`.
7. Approve/sign prompts in your wallet.
8. Wait for onchain confirmation.

## What the UI Shows While Quoting

* Unit price estimate
* Gas estimate (USD)
* ETA chip (approximate)

Quotes auto-refresh periodically while input stays valid.

## If an Approval Is Needed

For ERC-20 swaps, you may see an allowance approval step before the swap tx.

Flow can be:

* `Approve token allowance` (one tx)
* `Swap` (second tx)

For supported permit-token paths, signature-based permit flow may be attempted first.

## MAX Button Behavior

`MAX` on native gas tokens intentionally keeps a small buffer (instead of spending 100%) so gas remains available.

## Common Reasons Swap Button Is Disabled

* No connected wallet
* Amount is missing/invalid
* Receiving address is required but invalid/missing
* Quote not available
* Insufficient balance

## Completion

On success, the modal includes:

* From/to assets and chain IDs
* Receiver (if present)
* Route reference
* Tx hash copy button

After that, you can verify progress from [Track a Swap](./track-swap.md).
