Glossary · Infrastructure

What is DEX routing?

DEX routing is the machinery that turns 'I want A for B' into the cheapest legal path through every pool that will serve it: direct if a deep A/B pool exists, split across hops if going through C is cheaper, sourced across venues if two pools both have depth.

A router does in one transaction what a trader would do with hours of quotes: compare, split, and execute atomically. The output either lands whole at the quoted price or the transaction reverts; there is no partial fill at a worse price.

How DEX routing works

Routing is the work of turning one swap request into the cheapest executable path. A single trade might split across two pools on one chain, hop through an intermediate token, or cross chains where the asset exists on both. The router quotes candidate paths against live pool math, adds the fees for each hop, and presents the best net number. What you approve is that exact route, not an intention.

The consequence for the signer is that price is a function of path. Two routes between the same assets can differ meaningfully on size, which is why aggregators exist at all: they make the path decision competitive instead of leaving it to whichever venue you happened to open. The all-in quote is the number that matters, and on U.CASH it includes the platform's flat fee so nothing arrives as a surprise.

Route quality also changes with liquidity. A path that was cheap an hour ago can be expensive after a pool shifts, which is why quotes are live and short-lived. The preview exists precisely because routing outcomes are state-dependent.

DEX routing in practice

Swapping a position of an obscure Solana token into a USD peg might route through SOL as an intermediate, splitting across two pools to limit slippage on the thin leg. The confirmation shows each hop and the final amount. A minute later the same trade could route differently as pool balances moved.

DEX routing on U.CASH

The U.CASH swap routes non-custodially across every pool it can reach on 35 networks, scanning for the best price and bridging cross-chain inside one signed transaction. A flat, transparent fee replaces spread games.

Merchants meet routing as the thing behind the checkout price: the buyer pays from whatever they hold, the router finds the path into the settlement asset, and the invoice amount arrives as quoted. No side conversation about venues, no manual bridging, and no spread guessing. The routing fee is inside the 0.50% all-in number.

Related infrastructure terms

Cross-chain swapGas feesLightning Network

See also

Cross-chain swapSwap crypto

DEX routing: FAQ

How do I know I got the best price?
The route and the quote are shown before you sign: the pools, the hops, the expected output. The router's job is to have checked every alternative; your job is to read one screen.
What is slippage?
The difference between the quoted and executed price when your trade moves the pool. The router minimizes it by splitting across venues; you set the tolerance above which the trade reverts.
Does routing add extra fees per hop?
Each hop pays its pool fee, which the quote nets into the final number. More hops are taken only when the split is still the cheapest path, so the route you see is already fee-optimized.
Can a route fail mid-swap?
Swaps settle atomically: either the full route executes or nothing moves. There is no half-completed state, so a path that cannot fill simply reverts and you re-quote.
Why did my quoted amount change on retry?
Pools moved between quotes. Routing is state-dependent, so numbers are live and short-lived; the amount you sign is the amount that settles.
Keep reading

The glossary, A to Z

Every term behind the rails, the assets, and the settlement.