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

# Setup

> Configure swap settings and routing behavior in the Privy Dashboard

Configure swap settings from the [Privy Dashboard](https://dashboard.privy.io). Navigate to **Wallet Infrastructure > Wallets > Advanced** to enable swaps and customize routing behavior.

## 1. Enable swaps

Toggle **Enable token swaps** to activate swap functionality for your app. Swaps are disabled by default.

## 2. Configure fee sponsorship

Open [**Fee sponsorship**](https://dashboard.privy.io/apps?page=fee-sponsorship) in the Dashboard and configure the following options:

* **Gas sponsorship (optional):** Enable **Sponsor gas fees** to cover network fees for swaps from your app's [gas credits](/wallets/gas-and-asset-management/gas/setup). Sponsorship applies per chain, so select every chain your app swaps on under **Supported chains**. Without sponsorship, the swapping wallet pays its own network fees and must hold a balance of the chain's native token.
* **Swap provider fee sponsorship (optional):** Enable **Sponsor swap provider fees** to cover swap provider fees for cross-chain swaps on all supported routes. This includes fees charged by decentralized exchanges (DEXes).

<Info>
  Paying network fees in ERC-20 tokens ([user pays
  mode](/wallets/gas-and-asset-management/gas/setup)) is not supported for swaps. Apps configured
  for user pays mode can still execute swaps, but the wallet pays network fees in the chain's native
  token.
</Info>

<Note>
  Swaps on [supported fixed-rate routes](/wallets/actions/transfer/supported-sponsored-routes)
  execute at a fixed rate without slippage. Enabling both gas sponsorship and swap provider fee
  sponsorship allows 1:1 swaps between supported stablecoins. Swap provider fee sponsorship does not
  cover slippage on other routes.
</Note>

Fee sponsorship supports prepaid and postpaid billing. For prepaid accounts, ensure the credit balance is funded. Follow the [fee sponsorship setup](/wallets/actions/transfer/fixed-rates#setup) for details.

<Note>
  On EVM chains other than Tempo, an unsponsored swap that also needs a token approval is submitted
  as a [batch transaction](/recipes/batch-transactions). If the wallet has not been upgraded on that
  chain yet, Privy upgrades it via EIP-7702 as part of the swap.
</Note>

## 3. Select protocols

Choose which protocols are used to route swaps.

### EVM chains

Choose which [Uniswap](https://docs.uniswap.org/) protocols are used to route EVM swaps. Additional protocols and DEX aggregators are planned for future releases.

| Option | Description |
| - | - |
| **All Uniswap** | Routes through [Uniswap V2](https://docs.uniswap.org/contracts/v2/overview), [V3](https://docs.uniswap.org/contracts/v3/overview), and [V4](https://docs.uniswap.org/contracts/v4/overview) pools. This is the default setting and provides access to the broadest liquidity. |
| **Uniswap pools only** | Routes exclusively through Uniswap V2, V3, and V4 on-chain pools. |
| **UniswapX only** | Routes through the [UniswapX](https://docs.uniswap.org/contracts/uniswapx/overview) protocol. *Coming soon.* |

### Solana

Solana swaps route through a low-latency swap aggregator. No additional protocol configuration is required for Solana.

## 4. Select routing strategy

Choose how swaps are optimized when multiple routes are available.

| Option | Description |
| - | - |
| **Fastest** | Optimizes for execution speed. Selects the route expected to confirm on-chain most quickly. This is the default setting. |
| **Best price** | Optimizes for output amount. Selects the route that returns the most tokens to the wallet, which may take longer to execute. |

<Info>
  **Fastest** is typically appropriate for most use cases. **Best price** may result in longer
  confirmation times during periods of network congestion, but can yield better rates for larger
  swaps.
</Info>


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