
Introduction
Uniswap is an open-source decentralized exchange protocol that uses smart contracts, automated market makers, and liquidity pools to enable onchain token trading. Instead of matching buyers and sellers through a centralized order book, it allows users to exchange tokens against reserves held in smart contracts.
Uniswap matters because it provides open infrastructure for token swaps, liquidity provision, market creation, and application development without relying on a central exchange operator.
What Is Uniswap?
Uniswap is a decentralized exchange protocol originally created for the Ethereum ecosystem. A protocol is a collection of rules and smart contracts that applications and users can interact with. Uniswap is therefore not a blockchain of its own, and it is not a centralized exchange that holds customer accounts and controls an internal order book.
The protocol allows users to swap ERC-20 tokens, supply assets to liquidity pools, and create onchain markets. ERC-20 is a common technical standard for tokens issued on Ethereum.
Uniswap should also be distinguished from UNI. Uniswap is the exchange protocol, while UNI is an ERC-20 governance token. UNI holders can participate in governance by delegating voting power and taking part in decisions within the governance system. UNI is not the asset that must be used as payment in every Uniswap swap.
Uniswap Labs contributes to the wider Uniswap ecosystem and develops products that interact with the protocol. The protocol itself operates through deployed smart contracts rather than as a conventional company-run trading venue.
History and Development of Uniswap

Hayden Adams created the Uniswap Protocol in 2018. Its original design demonstrated how smart contracts and user-supplied liquidity could support token trading without a centralized order book.
Uniswap v2 expanded the protocol’s functionality, including support for direct trading between ERC-20 tokens. It represents a provider’s share of a liquidity pool with fungible ERC-20 pool tokens.
Uniswap v3 introduced concentrated liquidity. This model allows liquidity providers to select price ranges in which their assets are made available for trading. Concentrating liquidity can use capital more efficiently within a chosen range, but it also requires providers to understand how their position behaves when the market price moves outside that range.
Uniswap v4 continues to support concentrated liquidity while adding a more customizable protocol structure. Its hooks allow external smart contracts to run additional logic around specified pool actions. It also uses a singleton design in which a central PoolManager contract manages pools, together with a flash-accounting model designed to settle net balances across related operations.
How Does Uniswap Work?

Automated market makers and liquidity pools
An automated market maker, or AMM, is a smart-contract system that determines trading conditions using predefined rules and assets held in liquidity pools. A basic Uniswap pool contains reserves of two tokens. Users trade with those reserves rather than waiting for a matching order from another trader.
Liquidity providers supply tokens to a pool. Their assets make swaps possible, and they may receive a portion of the pool’s trading fees under the applicable pool rules. Liquidity provision is not equivalent to a guaranteed-return deposit because the value and composition of a position can change.
The constant-product formula
The basic Uniswap model is commonly expressed as x*y=k. In this formula, x and y represent the quantities of the two tokens in a pool, while k represents their product.
When a trader adds one token to the pool and removes the other, the balance between the reserves changes. The smart contract calculates the trade according to the pool’s rules. This changing reserve ratio affects the price offered by the pool.
Example: If a swap removes a meaningful portion of one reserve, the ratio between the two assets changes more sharply than it would for a small swap. Consequently, a large trade relative to the pool’s depth generally has greater price impact.
Price impact and slippage
Price impact is the effect that a trade has on the price calculated from a pool’s reserves. Deeper liquidity generally allows a pool to absorb a given trade with less price impact than a shallower pool.
Slippage refers to a difference between an expected trade amount and the amount produced when the transaction executes. Pool conditions can change while an onchain transaction is pending, so a displayed quote should not automatically be treated as a guaranteed final result.
Liquidity positions across versions
In Uniswap v2, liquidity shares are represented by fungible ERC-20 pool tokens. Providers in the same pool hold interchangeable tokens representing proportional shares.
Uniswap v3 and v4 support concentrated liquidity within ranges selected by liquidity providers. A concentrated position depends on its chosen range and is not equivalent to a simple proportional v2 pool share. If the market price moves outside the selected range, the position’s composition and fee-earning conditions can change.
Key Features of Uniswap
- Open onchain markets: Users can interact with protocol smart contracts without a centralized order-matching operator.
- ERC-20 token swaps: Supported pools allow one ERC-20 token to be exchanged for another through pool reserves.
- Liquidity provision: Users can supply assets to pools that facilitate trading, subject to the rules and risks of the relevant version and pool.
- Market creation: The protocol’s open structure allows markets and liquidity pools to be created onchain for compatible assets.
- Non-upgradeable core contracts: The core contracts are non-upgradeable and cannot be paused or used to reverse completed trades.
- Concentrated liquidity: Uniswap v3 and v4 allow liquidity providers to deploy assets within selected price ranges.
- Custom pool hooks: Uniswap v4 hooks can add logic around actions such as pool initialization, liquidity changes, and swaps. Third-party hooks must be assessed separately from the core protocol.
- UNI-based governance: UNI holders can delegate voting power and participate in protocol governance. Governance may enable protocol fees within predefined limits.
- Developer integration: Uniswap documentation covers APIs, TypeScript software development kits, and direct integration with onchain protocols. Developers can use these resources when building wallets, trading interfaces, liquidity tools, and other applications.
Advantages, Limitations, and Risks

Potential advantages
- Open access: The protocol provides an open structure for swaps, liquidity provision, and market creation.
- No centralized order book: Trades can occur against smart-contract pools rather than depending on a centrally operated matching engine.
- Onchain operation: Transactions and contract interactions are recorded on the relevant blockchain, making the activity inspectable onchain.
- Composability: Developers can integrate Uniswap contracts and related tools into wallets and decentralized applications.
Limitations and risks
- Price impact: A trade that is large relative to available liquidity can produce a less favorable rate as it changes pool reserves.
- Slippage: The executed result may differ from a displayed quote if pool conditions change before the transaction is confirmed.
- Token volatility: Tokens being traded or supplied as liquidity can change substantially in value.
- Liquidity-provider losses: A liquidity position can perform worse than simply holding the deposited assets. Concentrated positions also require providers to consider selected price ranges.
- Smart-contract risk: Code vulnerabilities, integration failures, or unexpected contract behavior can cause losses. Open-source code does not eliminate technical risk.
- Irreversible transactions: Core contracts cannot reverse trades. A transaction sent with incorrect details may not be recoverable.
- Token authenticity risk: An open market can contain misleading or unauthenticated tokens with names or symbols resembling legitimate assets.
- Third-party functionality: Interfaces, wallet integrations, routers, and v4 hooks may introduce risks distinct from those of Uniswap’s core contracts.
- Wallet security: Protocol security does not protect a user whose private key or recovery phrase is compromised.
Open access removes some centralized controls, but it does not remove technical, market, operational, or liquidity risks.
Common Uses and Practical Considerations
Users commonly encounter Uniswap when exchanging one token for another. They may also supply assets to a pool, while developers can use the protocol to create markets or add token trading to wallets and applications.
Developer integrations can use documented APIs, software development kits, or direct onchain interactions. Uniswap v4 also allows developers to create custom pool hooks, but the behavior and security of each third-party hook require separate evaluation.
Pool fees and blockchain network fees are different costs. A pool fee is associated with the swap rules of the selected liquidity pool. A network fee pays for processing the transaction on the blockchain and can vary with network conditions and transaction complexity.
Before confirming a transaction, a user should verify the token’s contract address rather than relying only on its name or symbol. The expected amount, price impact, slippage settings, network, wallet permissions, and network fee should also be reviewed.
Interfaces, supported networks, fees, and other operational details can change. Users and developers should consult current official documentation and carefully inspect transaction details before interacting with a contract.
Frequently Asked Questions
Is Uniswap a centralized exchange?
No. Uniswap is a decentralized exchange protocol based on smart contracts and liquidity pools. It does not use a centralized order book to match trades.
Is UNI required for every Uniswap swap?
No. UNI is the protocol’s governance token, not a mandatory payment token for every swap. A transaction may still require the native asset used to pay network fees on the relevant blockchain.
What do liquidity providers do?
Liquidity providers supply tokens to pools that traders use for swaps. They may receive pool trading fees, but they remain exposed to token price changes, position-management requirements, smart-contract risk, and the possibility of losses relative to holding the assets.
Why can the quoted and executed amounts differ?
A trade can affect the pool’s reserve ratio, creating price impact. Pool conditions can also change before a transaction executes, producing slippage between the quote and the final result.
Does providing liquidity guarantee returns?
No. Trading fees may be earned under a pool’s rules, but returns are not guaranteed. Token volatility, changing reserve ratios, concentrated-liquidity ranges, smart-contract problems, and other factors can result in losses.
Can Uniswap reverse an incorrect trade?
No. The protocol’s core contracts cannot reverse completed trades, so token identity, amounts, network selection, and transaction permissions should be checked before confirmation.
References
- How Uniswap Works | Uniswap Developers https://developers.uniswap.org/docs/get-started/concepts/how-uniswap-works
- About Uniswap Labs https://about.uniswap.org/
- 유니스왑(Uniswap, UNI) 완벽 가이드 https://cryptowiki-db.com/uniswap-wiki/
- Docs | Uniswap Developers https://developers.uniswap.org/docs
Key Takeaway
Uniswap is an open-source decentralized exchange protocol that uses smart contracts, automated market makers, and liquidity pools instead of a centralized order book. Users can swap ERC-20 tokens, provide liquidity, or create onchain markets, while developers can integrate the protocol into other applications.
Uniswap is the protocol, whereas UNI is its ERC-20 governance token. Open participation does not eliminate price impact, slippage, token volatility, liquidity-provider losses, smart-contract failures, unauthenticated tokens, or wallet-security risks.
Disclaimer
This article is provided for general educational and informational purposes only. It does not constitute investment, financial, legal, or tax advice and does not recommend buying, selling, or holding any cryptocurrency or using any particular protocol.
Any AI-generated images included with this article are educational visual aids. They should not be interpreted as official project interfaces, products, technical diagrams, or exact representations of real-world systems. Separately supplied verified project icons or identity assets are distinct from AI-generated educational images.