Decentralized exchange · Ethereum and multichain DeFi

Uniswap
Explore the world of onchain trading.

Uniswap is a collection of decentralized trading protocols and a suite of apps that help people explore tokens, swap digital assets and provide liquidity. This independent guide explains the technology behind the experience, the evolution from v2 to v4, the UNI governance token and the practical risks of interacting with smart contracts.

Important: This is an independent educational website, not the official Uniswap app or an investment recommendation. Digital-asset trading and liquidity provision can result in substantial losses. Always verify domains, token contracts, networks and transaction details.
01 · Introduction

What is Uniswap?

Uniswap is a decentralized exchange protocol designed to let people trade digital assets directly through blockchain-based smart contracts. Instead of matching buyers and sellers through a traditional centralized order book, its automated market maker model uses liquidity pools. A pool holds token assets, and traders exchange one asset for another according to rules encoded in the relevant contracts.

The Uniswap ecosystem includes the onchain protocol, developer infrastructure and user-facing products. The protocol is the set of smart contracts that execute swaps and manage liquidity. The Uniswap web app is an interface that helps people discover tokens, connect wallets and interact with supported trading routes. Uniswap Labs develops products and infrastructure around this ecosystem, but the app, the Labs organization and the decentralized protocol are not interchangeable terms.

The official app is available at app.uniswap.org. The interface has evolved beyond a simple swap box: official product information describes token discovery, trading across supported networks, portfolio tracking and liquidity-related experiences. Product features and network support can change, so users should consult the live app and official help resources for current availability.

Uniswap is important in DeFi because it made permissionless token exchange and liquidity provision accessible through open smart contracts. Developers can build applications on top of its pools, traders can swap supported assets and liquidity providers can make assets available to markets. This openness creates useful composability, but it also means users must evaluate tokens, pools and contracts rather than assuming every listed asset is trustworthy.

Core modelAutomated market maker (AMM)
Primary activityOnchain token swaps
LiquidityCommunity-funded pools
Governance tokenUNI
Protocol generationsv2, v3 and v4
Access modelSelf-custody and smart contracts
02 · The basics

How does Uniswap work?

At the heart of Uniswap is an automated market maker, or AMM. An AMM is a smart-contract system that quotes trades based on the state of a liquidity pool and a mathematical pricing rule. In a traditional exchange, an order book records bids and asks submitted by traders. In an AMM, liquidity providers deposit assets into a pool and swaps trade against that pool. The pool's balances and pricing formula determine how much of the output asset a trader receives.

A simple two-token pool might contain Token A and Token B. A trader supplies one token and receives the other, while the pool's balances change. The price implied by the pool changes as trades alter those balances. Larger trades relative to available liquidity generally move the price more, which is why pool depth matters. The quoted price is not a promise: the final execution can be affected by price movement, network conditions, routing and the slippage tolerance selected by the user.

⇄

Swap

A trader chooses an input token and an output token. The interface finds a supported route and prepares a transaction for the wallet to review and sign.

◈

Pool

A pool is a smart-contract market containing liquidity for a token pair. Its pricing logic and available liquidity shape the terms of a swap.

✦

Liquidity provider

A liquidity provider supplies assets to a pool and may receive a share of eligible swap fees, depending on pool design and position conditions.

What happens during a token swap?

When a user enters a trade in the app, the interface can search for routes through one or more pools. A route may involve a direct pool or several intermediate tokens. The app displays an estimated output, price impact and other transaction information where available. The user then reviews the transaction in a wallet. After signing, the transaction is submitted to the selected blockchain, where smart contracts execute the swap if the transaction succeeds and its conditions are satisfied.

There can be a difference between the estimated output and the final result. The market may move before the transaction is included, the pool may have limited depth, or network fees may change. Slippage settings define how much price movement a user is willing to tolerate before the transaction reverts. Setting an excessively wide tolerance can expose a trade to unfavorable execution; setting it too narrowly can cause otherwise reasonable transactions to fail.

Remember: A decentralized exchange does not remove market risk. It changes how trading is executed and who controls the infrastructure. Token volatility, liquidity, contract behavior, network fees and transaction ordering still matter.
03 · Protocol evolution

Uniswap v2, v3 and v4

Uniswap has evolved through several protocol generations. Each version reflects a different set of trade-offs involving pool design, capital efficiency, developer flexibility and transaction costs. The versions coexist across the ecosystem; a newer version does not automatically mean every older pool or integration has disappeared. The appropriate version depends on the use case, network, liquidity and application integration.

Ⅱ

Uniswap v2

V2 popularized the constant-product pool model and a relatively straightforward approach to liquidity. It remains useful for understanding AMM fundamentals and legacy integrations.

Ⅲ

Uniswap v3

V3 introduced concentrated liquidity. Providers can choose price ranges for their liquidity, potentially making capital more efficient while requiring more active position management.

Ⅳ

Uniswap v4

V4 adds hooks and a singleton architecture, with flash accounting designed to reduce unnecessary transfers and enable more flexible pool customization.

Why v3 concentrated liquidity was a major change

In a full-range pool, liquidity is spread across a broad price interval. In v3, a provider can allocate liquidity to a selected range where they expect trading activity to occur. If the market price remains inside that range, the position can provide liquidity more efficiently than a comparable full-range allocation. The trade-off is that the position can become inactive when price moves outside the chosen bounds.

Concentrated liquidity gives providers more control, but it also adds decisions. Providers must consider the range, volatility, pool fee tier, token correlation and the possibility that their position becomes one-sided. Fees are not guaranteed, and a position can underperform a simple holding strategy after accounting for price movement and other costs. Uniswap's developer documentation explains that v3-style positions can stop earning fees when the market price leaves the selected range.

What is new about v4?

Uniswap v4 introduces hooks: optional external smart contracts that can run at defined points in a pool's lifecycle, such as initialization, swaps and liquidity changes. Hooks make it possible to experiment with features such as dynamic fee strategies, custom accounting, oracle integrations and specialized pool behavior. They are a developer extension mechanism, not a guarantee that every hook or pool is safe.

V4 also uses a singleton architecture in which pools are managed through a shared PoolManager contract. Flash accounting tracks balances within a transaction and settles net amounts at the end, which can reduce token transfers for complex operations. These design choices can improve efficiency and flexibility, but the added customization makes it important to understand the specific pool and hook configuration being used.

Official developer documentation identifies v4 as the current recommended version for new integrations, while v3 remains relevant for existing concentrated-liquidity use cases and v2 for legacy constant-product workflows. Developers should consult the latest deployment references and audits rather than copying contract addresses from old tutorials.

04 · Providing liquidity

Liquidity pools and earning swap fees

Liquidity provision is the process of depositing tokens into a pool so traders can exchange assets against that pool. In return, a provider may earn a portion of swap fees generated by activity in the pool. The details depend on the protocol version and pool configuration. Providing liquidity is not equivalent to earning a fixed interest rate: fee income varies with trading volume, liquidity competition, fee settings and the amount of time a position is active.

In v2, liquidity is generally distributed across the full price curve, and providers receive fungible pool tokens representing their proportional share. In v3 and v4, providers choose price ranges and hold positions with individualized liquidity profiles. That flexibility can improve capital efficiency, but it means providers need to understand price ranges, ticks and the behavior of positions as market prices move.

Understanding impermanent loss

Impermanent loss is the difference between the value of assets held in a liquidity position and the value those same assets might have had if they had simply been held outside the pool. It can arise because the AMM rebalances the relative quantities of the deposited tokens as their market price changes. The term can be misleading: the difference can become a realized loss when liquidity is withdrawn, and trading fees may or may not offset it.

Concentrated liquidity adds another layer. If the market moves outside a selected range, a position may consist almost entirely of one asset and stop earning swap fees until price returns to the range. Active management can involve adjusting ranges, which may create additional transaction costs and tax considerations. Providers should evaluate pool depth, token risk, volatility, fee income and the costs of managing a position.

Liquidity provision can lose value. Fee income is variable, and historical returns are not reliable forecasts. Understand the pool mechanics before depositing tokens.
05 · Governance

What is the UNI token?

UNI is the governance token associated with the Uniswap ecosystem. Governance is a way for token holders and delegates to participate in decisions about the protocol and its surrounding organization. Depending on the governance framework and proposal, discussions can address protocol parameters, treasury-related matters, grants, ecosystem priorities and other subjects within the scope of the relevant governance process.

Holding UNI should not be confused with holding equity in a conventional company or receiving a guaranteed share of protocol revenue. Governance rights and their practical effect are defined by the applicable rules, contracts and processes. Token holders may delegate voting power, participate directly or choose not to vote. As with other token-based governance systems, voter participation and the distribution of voting power can affect outcomes.

Anyone researching UNI should distinguish the token's market price from its governance utility. A governance token can be volatile, and a token's existence does not guarantee that every holder will influence a proposal or receive economic benefits. For current information about governance, use official Uniswap governance resources and review the text, implementation details and discussion history of individual proposals.

TokenUNI
Primary roleGovernance participation
Research focusProposals and delegation
Not a guaranteeNo assured yield or price
06 · Networks and the app

Using Uniswap across supported networks

DeFi activity takes place on multiple blockchains and layer-two networks. A token with the same name can exist on more than one network, but its contract address and liquidity may differ. A wallet balance on one network is not automatically available on another. Cross-chain functionality can involve bridging or specialized routing infrastructure, each with its own contracts, trust assumptions and potential failure modes.

The Uniswap app provides a user interface for supported networks and routes. Product capabilities evolve over time. Official Uniswap product updates have described cross-chain swaps and portfolio features designed to make it easier to view assets and move between supported networks. Availability can depend on network support, token eligibility, routing, liquidity and app version. Check the live interface for the exact options presented for a specific transaction.

Before confirming a transaction, verify the network selected in the app and wallet, the token contract, the destination address and the estimated fees. Be cautious when a token search returns multiple similarly named assets. Scammers can create tokens with names and symbols that imitate well-known projects. A familiar ticker is not proof of authenticity.

07 · Security and risk

Security practices for decentralized trading

Self-custody gives users control over their assets, but it also places responsibility for wallet security and transaction approval on the user. Blockchain transactions are generally difficult or impossible to reverse once confirmed. A support team cannot simply cancel a completed onchain transfer or restore a lost recovery phrase. Uniswap's wallet security guidance emphasizes protecting recovery phrases, checking transaction details and staying alert to scams.

Domain verification

Type the official app address directly or use a trusted bookmark. Watch for misspellings, fake support pages and sponsored links that imitate familiar branding.

Wallet permissions

Read approval requests and understand which token and spender are involved. Revisit old allowances and revoke permissions you no longer need using trusted tools.

Token verification

Check the exact contract address and blockchain network. Names, symbols, icons and social posts can be copied by unrelated or malicious tokens.

A careful transaction checklist

Open the official interface

Navigate to app.uniswap.org directly. Avoid links sent by strangers or unsolicited support accounts.

Confirm network and assets

Check the chain, token contract, symbol and decimals where relevant. Do not assume lookalike tokens are official assets.

Review the trade estimate

Inspect output amount, price impact, route, fees and slippage tolerance. Consider whether the trade size is appropriate for the available liquidity.

Read the wallet prompt

Confirm the transaction or approval matches the action you intended. Never share a recovery phrase or private key with anyone.

Keep records and monitor activity

Save transaction hashes and use a reputable block explorer to verify confirmed transactions. Review wallet activity and token allowances periodically.

Smart contracts can contain vulnerabilities. Audits and open-source code reviews are useful risk-reduction measures, not guarantees. A pool may use a hook or external contract with additional behavior. Liquidity can disappear, token issuers can change their contracts, and market prices can move sharply. Never invest money you cannot afford to lose, and seek independent professional advice where appropriate.

08 · Frequently asked questions

Uniswap FAQs

Is Uniswap a centralized exchange?

Uniswap's core exchange functionality is provided by decentralized smart contracts rather than a conventional centralized order book operator. The Uniswap app is a user interface that helps people interact with supported protocols and routes. The app and the onchain protocol are related but distinct.

How does Uniswap make prices?

Uniswap pools use automated market maker logic. The pool's token balances and pricing rules determine the exchange rate, and trades change those balances. The quoted price can move with trade size, liquidity and market activity.

What is the difference between v2, v3 and v4?

V2 uses a full-range constant-product model. V3 introduced concentrated liquidity, allowing providers to select price ranges. V4 builds on concentrated liquidity with optional hooks, a singleton PoolManager architecture and flash accounting.

Can anyone create a Uniswap pool?

Uniswap protocols are permissionless by design, allowing pools to be created without a centralized listing committee. Permissionless access also means that anyone may create a pool for a misleading or risky token. Pool existence is not an endorsement.

What is UNI used for?

UNI is the governance token associated with Uniswap. Governance participation can include voting directly or delegating voting power, subject to the applicable governance process. UNI does not represent a guaranteed return or conventional company share.

Do liquidity providers always earn a profit?

No. Providers may receive swap fees, but income is variable and can be outweighed by impermanent loss, price movement, inactive concentrated positions, gas costs or other risks.

Is Uniswap safe?

No smart-contract or trading system is risk-free. Users should verify official domains, inspect transactions, protect wallet recovery phrases, review approvals and understand the risks of tokens, pools, hooks and networks before interacting.

Where is the official Uniswap app?

The official web app is at app.uniswap.org. Official protocol and developer documentation is available at developers.uniswap.org.

Does this guide provide investment advice?

No. It is an educational overview of the technology and ecosystem. It does not recommend buying UNI, swapping a particular token or providing liquidity.

09 · Research and references

Official documentation and further reading

This guide uses official Uniswap product information and developer documentation as primary references, with independent educational explanations where useful. Product interfaces and protocol deployments change. Always check the live official sources for current features, supported networks, contracts and user guidance.

Editorial note: This is an independent educational resource and is not affiliated with or endorsed by Uniswap Labs or the Uniswap community. Information is subject to change. Last editorial review: December 2026. No live token prices, yields or trading recommendations are presented.