Uniswap

Uniswap is an Onchain Exchange Powered by Liquidity Pools

Uniswap is an onchain exchange where smart contracts - blockchain programs - and liquidity pools - shared token reserves - set prices and execute swaps without an order book. A user keeps control of funds, signs a transaction from a compatible wallet, and trades against pooled assets on networks such as Ethereum, Arbitrum, and Base. Pool depth, the selected route, the pool fee, price impact, slippage protection, and network gas determine the final execution.

Updated on

A token swap from quote to settlement

The Uniswap swap workflow is a wallet-signed transaction path linking token selection, route quoting, allowance, confirmation, and onchain settlement in one sequence. Each stage exposes a different decision, so the preview matters as much as the token symbols.

First, select one network, connect a self-custody wallet, and confirm the wallet holds the native asset required for network gas.

Next, choose the input token, output token, and amount. The interface searches available pools and displays the expected output, exchange rate, pool fee, price impact, maximum slippage, minimum received, and network cost. A WETH-to-USDC quote might use one pool, several pools in parallel, or an intermediate asset. The route is a proposal, not a reserved price, because pool balances can change before the transaction reaches a block. Token contract addresses distinguish assets sharing a symbol.

An ERC-20 token normally needs an allowance before a router can transfer it. The wallet may therefore request an approval transaction or a Permit2 signature, followed by the swap signature. Read the amount, asset, network, and contract action shown by the wallet. Once signed, the transaction enters the selected chain, where the router calls the pools and enforces the specified output constraint.

Settlement changes the wallet balances atomically: either every required swap step completes, or the token exchange reverts. Network gas remains a separate chain expense. Related details are covered in Uniswap checklist.

What does a Uniswap swap cost?

A Uniswap swap cost is the combined burden of the pool fee, price impact, maximum slippage setting, network gas, and any displayed interface fee. The quoted output already reflects route-specific pool fees and price impact, while gas is paid separately in the network native asset.

Uniswap v2 charges a fixed 0.30% swap fee. When its protocol fee is enabled, that amount divides into 0.25% for liquidity providers and 0.05% for the protocol. Uniswap v3 supports 0.01%, 0.05%, 0.30%, and 1.00% pools, with governance able to enable additional fee tiers. Lower-fee pools suit assets expected to trade within a tight relationship, while higher tiers give providers more compensation per trade. A route can cross several pools, so its effective pool cost reflects every leg rather than one headline tier.

Gas follows chain demand and the work performed by the route. A split route can return more tokens before gas yet lose that advantage after gas. Protocol fees come from the stated pool fee rather than appearing as an extra trader charge. Any separate interface fee belongs in the preview, beside network cost and minimum received.

Route selection across pools and protocol versions

A Uniswap route is an execution plan the routing system builds from available v2, v3, and v4 liquidity for a specific amount and network. A direct route uses one pool; a two-hop route uses two pools and one intermediate token. The Universal Router can compose multiple protocol generations within one transaction, while UniswapX uses signed orders and competitive fillers for eligible flows. WETH/USDC and USDC/DAI show why liquidity distribution matters more than pair availability.

Liquidity provider returns and range management

A Uniswap liquidity position is deposited capital exposed to pool trades, fee accrual, inventory changes, and the market value of both assets. Providers earn a proportional share of fees only while their capital participates in execution.

Said differently, Uniswap v2 spreads liquidity across the full price curve and represents ownership with fungible ERC-20 pool tokens. Uniswap v3 and v4 let a provider concentrate capital between chosen price boundaries. Each v3 tick changes price by a factor of 1.0001, equivalent to 0.01% between adjacent ticks. Fee tiers control which ticks can initialize. At the 1.00% tier, a spacing of 200 makes adjacent initializable boundaries about 2.02% apart. Narrow ranges create greater fee exposure per unit of capital near the market price, but they require closer management.

Once price leaves a concentrated range, the position stops earning swap fees and holds mainly one asset until price returns or the owner repositions. Fees do not erase divergence from simply holding the tokens. Volatile pairs, narrow ranges, inactive liquidity, network costs, and v4 hook behavior all shape realized returns. A USDC/DAI range carries a different inventory profile from WETH/USDC.

Price impact, slippage, and minimum received

Notably, Uniswap price impact is the quote movement caused by trade size relative to active liquidity, while slippage protection limits acceptable deterioration before settlement. An exact-input swap sets a minimum output; execution below that floor reverts.

Every changing input in this worked example is hypothetical: the trader supplies 1 000 USDC, selects a 0.30% pool, receives a quote for 0.500 ETH, sets maximum slippage at 0.50%, and faces a network cost of 0.002 ETH. The pool applies 3 USDC in swap fees, leaving 997 USDC for the pricing calculation. Minimum received equals 0.500 × (1 − 0.005), or 0.4975 ETH. The protected result is therefore at least 0.4975 ETH on success, with 0.002 ETH reserved separately for network cost.

Price impact remains part of the quote; maximum slippage defines the later movement the transaction accepts before reverting at 0.4975 ETH.

Wallet custody, approvals, and transaction state

The Uniswap custody model is a self-custody arrangement where a wallet signs instructions and smart contracts move assets only through authorized calls. MetaMask, Coinbase Wallet, and Rainbow are established wallet options, while hardware wallets can sign through compatible connectors. The protocol does not hold a user account balance between ordinary swaps.

Permit2 separates authorization into two steps: a one-time onchain ERC-20 approval and a signed permission for a defined spender, amount, and expiry. A direct allowance remains active until its owner changes it or its encoded conditions end. Rejecting a wallet request leaves chain state unchanged. A submitted transaction can settle, remain pending, or revert; a revert preserves the attempted token exchange but still consumes network gas.

Network choice and crosschain movement

A Uniswap deployment is a set of contracts on one blockchain, with liquidity and transaction state isolated from deployments on other chains. Core deployments include Ethereum with chain ID 1, Optimism with 10, Polygon with 137, Unichain with 130, Base with 8453, and Arbitrum with 42161. Same-chain swaps use assets already present on that network. Crosschain swaps in supported interfaces add bridge execution through Across, so the quote includes a separate movement between chains.

Trading, market creation, and developer use cases

Equally, Uniswap use cases are decentralized-finance activities spanning token exchange, liquidity provision, permissionless market creation, treasury rebalancing, and smart-contract integration across public blockchains. Traders access pool liquidity, while issuers and communities can initialize a pool and seed both sides of a market.

Developers integrate the Universal Router, Permit2, software development kits, or direct contract calls. UniswapX offers a different path based on signed swap intents and competitive fillers rather than one selected pool route. The protocol fits users comfortable with wallet custody, variable network costs, public settlement, and irreversible signatures. It also gives integrators composable settlement logic for products built on Ethereum, Base, and Unichain.

When is Uniswap the wrong fit?

In the version most people meet, Uniswap is a poor fit when a user needs fiat deposits, account recovery, a guaranteed execution price, or an order book with resting bids and asks. Thin liquidity also makes a listed pair impractical when a modest trade causes substantial price impact.

Liquidity provision adds a different set of exposures. A provider accepts inventory rebalancing, loss relative to holding, inactive ranges, and contract-specific rules. V4 hooks extend pool behavior, so their fee logic and callbacks belong in the position decision. Traders also need the correct network asset for gas and the correct token contract, since a familiar ticker does not identify one unique asset. Deep liquidity such as WETH/USDC remains the relevant benchmark.

1inch, Curve, CoW Swap, and other alternatives

A Uniswap alternative is another execution model offering a different route source, pricing curve, custody arrangement, or order mechanism for the same trade objective. The useful comparison starts with how the venue finds liquidity and settles the order.

1inch aggregates routes across decentralized exchanges, which broadens venue discovery but introduces its own routing and transaction path. Curve centers many pools on assets designed to track closely, using its StableSwap approach. CoW Swap collects signed intents and uses solver competition with batch auctions. Balancer supports weighted pools and pool designs extending beyond the two-asset constant-product model.

A centralized exchange such as Coinbase or Kraken adds account custody, fiat rails, and an order book, while replacing wallet-signed pool execution with platform balances. The strongest option changes by token pair, chain, trade size, custody preference, and required order type. Comparing final output after venue fees, price impact, gas, and bridge costs keeps the decision tied to settlement economics.

From constant-product pools to v4 hooks

The Uniswap protocol engine is an automated market maker family whose versions preserve pool-based exchange while changing capital placement, accounting, routing, and customization. Multiple deployed versions coexist because liquidity remains in their separate contracts.

On the cost side, Uniswap v2 tracks two token reserves and enforces x × y = k after fee adjustments. A trade adds one asset and removes the other, moving the marginal price as reserve balance changes. V3 applies the same core relationship within concentrated ranges, moves execution through discrete ticks, and represents positions through ERC-721 tokens. This architecture places active liquidity near selected prices rather than across the entire positive curve.

V4 places pools inside a singleton PoolManager, records interim balance deltas, and settles net token movement at transaction end. Hooks can run before or after swaps, liquidity changes, initialization, and donations. Uniswap v4 permits pool fees from 0% to 100% in increments of 0.0001%. Dynamic fees and custom accounting expand design choice, while ERC-6909 supports internal multi-token accounting. The pool key, hook contract, fee rule, and active liquidity therefore define a v4 market.

Uniswap: what people ask

How does a new token become tradable on Uniswap?

A new ERC-20 token becomes tradable when someone creates or initializes a compatible pool and supplies liquidity for it against another asset. Pool creation is permissionless at the protocol level, so there is no central listing committee. Tradability does not guarantee meaningful depth, stable execution, or interface visibility. The pair needs usable liquidity, and traders must identify the intended token contract and network.

Do I need UNI to make a swap?

UNI is not required for an ordinary Uniswap swap, because the wallet needs only the input asset and enough of the selected network’s native token for gas, while UNI serves protocol governance and delegation rather than providing a universal fee discount across v2, v3, and v4 pools or unlocking standard direct access to their liquidity.

Which Uniswap versions represent liquidity positions as NFTs?

Uniswap v3 represents concentrated liquidity positions as ERC-721 non-fungible tokens through its position manager, while v4 positions use a position manager with ERC-6909 internal accounting. V2 instead issues fungible ERC-20 pool tokens representing proportional ownership of a pair. Transferability follows the position contract and any pool-specific constraints, so the version matters before a provider moves a position.

Is wrapped ether required when swapping native ETH?

Wrapped ether is not required as a separate manual step for every ETH swap in a supported interface, because routers can handle native ETH and wrapping where the route needs WETH. Older pool designs hold ERC-20 assets, while v4 also supports native ETH directly. The preview and wallet request show the actual route, asset movement, network cost, and output token before signing.

Does Uniswap offer limit orders?

Uniswap products can expose order types beyond an immediate pool swap, including limit-style orders routed through UniswapX where supported, but availability depends on the interface, network, pair, and order path. A signed intent waits for eligible execution under its terms, whereas a standard pool swap submits directly for onchain settlement. Users should distinguish the order expiry and output condition from a centralized order-book limit order.

Who controls changes to Uniswap protocol parameters?

UNI governance controls parameters and treasury actions assigned to the governance contracts, but it does not rewrite immutable pool code already deployed. Specific powers differ across protocol versions and deployments: governance can enable defined fee mechanisms, authorize additional v3 fee tiers, and direct governed contracts. V4 pool creators also choose pool-level settings and hooks at initialization, placing some design decisions outside protocol-wide governance.