Liquidity pool
A smart-contract pool holds assets that can be used for swaps. The exact design depends on the protocol version and pool configuration.
A practical explanation of the Uniswap protocol, automated market makers, liquidity pools, protocol versions, UNI governance and the risks that matter.
Protocol in 60 seconds
Uniswap is a decentralized exchange protocol built around automated market maker smart contracts. Instead of a centralized exchange matching buy and sell orders, Uniswap pools hold assets and apply programmed rules to enable onchain swaps and liquidity provision.
People commonly use the word “Uniswap” to describe several related things, including the underlying protocol, interfaces built on top of it, governance and ecosystem products. They are not all the same thing.
Core ideas
You do not need to start with complex formulas. First understand what the protocol is doing at a high level.
A smart-contract pool holds assets that can be used for swaps. The exact design depends on the protocol version and pool configuration.
An AMM uses smart-contract logic and liquidity rather than a traditional centralized order book to facilitate trading.
Liquidity providers allocate assets to pools. They may earn applicable fees while also taking market and smart-contract risk.
A swap changes pool state. Large trades relative to available liquidity can move the effective execution price more significantly.
Execution may differ from an earlier quote because markets, routes and pool state can change before a transaction settles.
Onchain actions require network execution. Gas costs depend on the network, transaction complexity and current demand.
How it works
The exact route can be more complex, but a typical interaction follows this basic logic.
A user selects the token being supplied and the token expected in return.
An interface or router can identify pools and paths that may be used to execute the requested swap.
Pool state, fees, liquidity and price impact determine the expected transaction outcome.
The user reviews the transaction and confirms it using a compatible self-custodial wallet.
Smart contracts execute the transaction according to protocol rules and the current blockchain state.
Protocol versions
New versions do not simply erase older ones. Each version has its own architecture and liquidity model.
Liquidity
Liquidity providers may receive a share of applicable fees, but their result depends on price movement, active ranges, pool parameters, trading activity, network costs and other risks.
Governance
UNI is the governance token of the Uniswap protocol. UNI can be delegated, and delegated voting power can be used in governance according to the applicable governance process.
Governance participation should not be confused with a guarantee of economic return. Token ownership also does not remove market, smart-contract or regulatory risk.
Risk awareness
Decentralization changes the risk model; it does not eliminate risk.
Code can contain vulnerabilities. Third-party contracts, integrations and hooks can introduce additional risk.
Permissionless markets can contain fake, malicious, illiquid or economically fragile assets.
Prices can move rapidly and liquidity conditions can deteriorate, affecting execution and position value.
A liquidity position can underperform simply holding the underlying assets when relative prices move.
Malicious websites, approvals and signatures can lead to irreversible loss of assets.
Network conditions, infrastructure changes and local rules may affect access, cost or permitted use.
FAQ
Uniswap is commonly described as a decentralized exchange or DEX. More precisely, the Uniswap Protocol is a set of onchain smart contracts that applications and users can interact with for swaps and liquidity.
The core AMM design does not rely on a conventional centralized order book. Instead, swaps use liquidity pools and smart-contract rules.
Concentrated liquidity, introduced in Uniswap v3, allows liquidity providers to allocate capital inside selected price ranges rather than across the entire possible price curve.
Hooks are smart contracts that can execute custom logic at specific points in a pool's lifecycle. They make pools more programmable, while potentially introducing additional logic and risk that users should evaluate.
UNI is the protocol's governance token. Delegated UNI provides voting power in Uniswap Governance under the current governance process.
No. Relevant risks can include price volatility, malicious tokens, smart-contract vulnerabilities, transaction mistakes, phishing, wallet compromise, slippage and liquidity-provider losses.
Primary sources
Technical details and governance rules can change. Use primary sources when you need current information.