When swapping on the Uniswap interface you can adjust the default trade options, which determine the liquidity pools your swap is routed through.
When default trade options are turned on, the Auto Router uses two routing methods. If the primary method finds no route or its selected route fails validation, the Auto Router uses the fallback method. Each method applies its parameters uniformly to every swap. The complete configuration used by the Auto Router is published here.
Primary routing method
The Auto Router selects the route estimated to deliver the largest amount of the output token after network costs, applying the following parameters: (i) pool eligibility — only pools created by the Uniswap Protocol contracts or the recognized external protocols listed in the published configuration, with usable liquidity and trading activity within the past 60 days; hooked pools are eligible according to the hook's on-chain permissions, with custom-accounting and dynamic-fee hooks used only if on the allowed lists in the published configuration; pools on the published blocked-pool list are never used (pools that cause simulation errors and route failure are added to that list); (ii) intermediate tokens — routes may pass through the published common tokens, or through other connected tokens only where a trial quote shows an improvement over the most efficient candidate route already found; tokens flagged as fee-on-transfer, spam, or blocked for compliance are never used as intermediate steps; (iii) splitting — larger swaps are routed in increments and may be divided across multiple pools or paths where that produces a better result after network costs; and (iv) network costs — each candidate route is charged its estimated gas cost at the current gas rate before the winner is selected, which may deprioritize routes with higher network fees. The selected route is then simulated to confirm it behaves as expected. Your slippage tolerance and swap deadline are encoded into the transaction, which will revert if execution would be worse than your tolerance or occur after your deadline.
Fallback routing method
Where the primary method returns no route, the Auto Router will select the most efficient trade route considering the following parameters: (i) estimation of gas costs via simulation (which may deprioritize high-network fee routes); (ii) estimation of slippage via simulation (which will revert a transaction that does not meet the user’s maximum specified slippage amount or better); (iii) pool liquidity, as measured by the total value locked across liquidity sources (which will deprioritize or exclude pools falling below a specified threshold); (iv) the maximum number of times a user’s swap can be “split” to allow the router to evaluate whether splitting the user’s swap among multiple liquidity sources may result in a better price; (v) the maximum number of “hops,” meaning potential sequences of digital asset conversions that end in the user receiving its desired output token; and (vi) the maximum number of potential routing paths that the Auto Router algorithm will evaluate in generating a proposed route.
The Auto Router does not explore pools with fees greater than 11% as a measure to protect users from unexpected price impact due to unusually high LP fees.
Note: on Solana, swaps on the Uniswap Web App are powered by the Jupiter API, which is a third-party service integrated to provide swap routing on Solana. Jupiter's liquidity is distinct from Uniswap Protocol liquidity, and pricing and trade routes for Solana swaps are determined solely by the Jupiter API.
You can also turn default trade options off to select a specific trade route option.
Available trade route options
-
Default trade: Selecting this allows the router to find the best route for your swap. This option uses UniswapX when eligible, as well as liquidity from Uniswap v2, v3, and v4 pools. Some v4 pools may have hooks that can change how a swap is executed in that pool (e.g., a hook providing limit order functionality). Select pools with hooks are included in the default trade route. (Learn more about custom hooks here.)
-
UniswapX: Selecting this allows swaps to be routed through UniswapX when eligible. This option is only available on the Uniswap Web app.
-
v4 pools: Selecting this will force your swap to only use Uniswap v4 liquidity pools for the swap route.
-
v4 hook pools: Some v4 pools may have hooks that can change how a swap is executed in that pool (e.g., a hook providing limit order functionality). Certain v4 pools may also use aggregator hooks, which source liquidity from external on-chain liquidity sources to fill swaps. The currently available aggregator hooks are:
Tempo aggregator hook: Sources liquidity from Tempo.
You can choose to only route through these hooked pools. Learn more here: How do custom hooks work in the Labs interface?
-
v3 pools: Selecting this will force your swap to only use Uniswap v3 liquidity pools for the swap route.
-
v2 pools: Selecting this will force your swap to only use Uniswap v2 liquidity pools for the swap route.
How to change a swap route on the Uniswap Web app
- Open the web app and connect your wallet.
-
Select the settings icon.
-
Select “Trade options”.
-
Toggle “Default” off.
-
Disable the swap routes you do not want to use.
- Swaps will be routed through the option(s) selected.
How to change a swap route in the Uniswap Wallet
- Open the Uniswap Wallet app and select “Swap”.
- Select the settings icon.
-
Select “Trade options”.
- Toggle “Default” off.
- Disable the swap routes you do not want to use.
-
Swaps will be routed through the option(s) selected.