CoinYQ

What is Uniswap?

Uniswap is a decentralized exchange (DEX) protocol that enables automated token swaps without a traditional order book. Instead of matching buyers and sellers, Uniswap uses liquidity pools funded by users who deposit token pairs and earn trading fees. The protocol operates on Ethereum and multiple Layer 2 networks, with UNI as its governance token.

Uniswap pioneered the automated market maker (AMM) model that has become standard in DeFi. Its constant-product formula (x * y = k) determines prices based on pool ratios, allowing anyone to trade instantly against pooled liquidity. Liquidity providers (LPs) earn a share of trading fees proportional to their pool share. The protocol is non-custodial: users retain control of their keys and funds throughout the trading process.

Uniswap v4 introduces hooks—custom smart contracts that execute at specific points in the pool lifecycle—enabling features like dynamic fees, on-chain limit orders, custom oracles, and concentrated liquidity strategies. This transforms Uniswap from a single DEX into a platform for customizable trading infrastructure.

What problem does Uniswap solve?

Traditional centralized exchanges require users to deposit funds, trust the exchange with custody, and accept potential withdrawal restrictions, hacks, or regulatory shutdowns. Order-book DEXes suffer from low liquidity and slow matching. Uniswap solves these problems by enabling peer-to-pool trading with instant settlement, no custody risk, and continuous liquidity provision.

The AMM model also democratizes market making: anyone can provide liquidity and earn fees, not just professional firms. However, LPs face impermanent loss (when token prices diverge), smart contract risk, and the complexity of managing concentrated positions. Uniswap v4 hooks address customization needs but introduce new risks if hook code is malicious or buggy.

How does Uniswap work?

Uniswap pools hold reserves of two tokens. When a trader swaps, they send one token to the pool and receive the other, with the price determined by the ratio of reserves. A 0.3% fee (v2/v3 default) is charged on each swap and distributed to LPs. In v3/v4, LPs can concentrate liquidity within specific price ranges to earn more fees with less capital, but positions become inactive if the price moves outside the range.

UNI is the governance token. Holders can vote on protocol upgrades, fee structures, and treasury allocations. Uniswap v4's hook system allows developers to deploy custom logic that runs before/after swaps, pool creation, or liquidity changes. Hooks can implement features like time-weighted average market maker (TWAMM) orders, dynamic fees based on volatility, or custom oracle integrations. The protocol remains permissionless: anyone can create a pool or trade, but hook quality varies and requires careful auditing.

Key facts

  • Launch: Uniswap v1 launched November 2018 on Ethereum
  • Founder: Hayden Adams, inspired by Vitalik Buterin's AMM concept
  • Protocol versions: v1 (basic AMM), v2 (ERC-20 pairs, flash swaps), v3 (concentrated liquidity), v4 (hooks, singleton architecture)
  • Governance: UNI token holders vote on proposals; Uniswap DAO controls treasury and protocol parameters
  • Fee structure: Default 0.3% trading fee (0.05%, 0.3%, 1% tiers in v3); v4 allows dynamic fees via hooks
  • Total Value Locked (TVL): Historically among the highest DEX TVLs across Ethereum and L2s
  • License: Business Source License 1.1 (BUSL) for v3/v4 core code, transitioning to GPL after 4 years
  • Grant program: Uniswap Foundation funds ecosystem development and research

Official links

Categories

Related coins

Compare

Frequently asked questions

What is Uniswap?

Uniswap is a decentralized exchange protocol that uses automated market maker pools instead of order books. Users trade directly against liquidity pools, and liquidity providers earn fees.

How do I use Uniswap?

Connect an Ethereum wallet (MetaMask, etc.) to app.uniswap.org, select tokens to swap, review the price impact and fees, and confirm the transaction. You retain custody of your funds throughout.

What is impermanent loss?

Impermanent loss occurs when the price ratio of pooled tokens changes. LPs may end up with less value than if they had simply held the tokens. It is 'impermanent' because it can reverse if prices return, but becomes permanent when liquidity is withdrawn.

What is UNI used for?

UNI is Uniswap's governance token. Holders can vote on protocol changes, fee switches, treasury spending, and grants. UNI does not automatically entitle holders to fee revenue.

What are Uniswap v4 hooks?

Hooks are custom smart contracts that execute at specific points in the pool lifecycle (before/after swap, liquidity change, etc.). They enable features like dynamic fees, limit orders, and custom oracles without modifying the core protocol.

Is Uniswap safe?

Uniswap's core contracts are audited and battle-tested, but risks include smart contract bugs, impermanent loss, scam tokens, front-running, and hook vulnerabilities in v4. Always verify token addresses and use reputable interfaces.

External trackers

Choose a tracking site for Uniswap: