Uniswap is the most battle-tested piece of financial infrastructure in DeFi. Its automated market maker contracts have processed trillions of dollars in volume since 2018 under constant attack, and no version of the core has been drained. When we score security at 9.5 in this category, Uniswap is the benchmark that number refers to.
How Uniswap works
Liquidity providers deposit pairs of tokens into pools, and traders swap against those pools at a price set by the pool's ratio rather than by an order book. Since v3, providers can concentrate their capital within a chosen price range, which produces far deeper liquidity near the market price than a uniform curve. v4 adds hooks — plug-in contracts that let a pool implement custom logic such as dynamic fees or on-chain limit orders — with a singleton architecture that cuts the gas cost of multi-hop routes.
What a swap actually costs
The pool fee is 0.01%, 0.05%, 0.30% or 1.00% depending on the tier, with stable pairs at the low end and volatile pairs at the high end. That is not the full cost. Add gas — negligible on Base or Arbitrum, meaningful on Ethereum mainnet — plus price impact on your size, plus any MEV extracted between broadcast and inclusion. The official front end also applies an interface fee on many swaps, so routing through an aggregator or a different interface can be cheaper for the identical trade.
Security and upgrade risk
The v2 and v3 core contracts are immutable: no admin key can change them, which removes the single largest category of DeFi risk. Governance controls peripheral parameters, the fee switch and the treasury, not the pools holding your liquidity. The realistic risks to a user are therefore not protocol failure but the ones around it — approving a malicious token contract, signing a permit on a phishing site, or providing liquidity to a pair whose token can be minted at will.
Who should use Uniswap
Anyone swapping on EVM chains where the pair has real depth, and anyone providing liquidity who wants the most examined contracts available. Traders on Ethereum mainnet with small orders should use an L2 deployment instead, and anyone swapping stablecoins in size will usually get a better price on Curve. Check the quote against an aggregator before signing: on well-traded pairs Uniswap frequently is the best route, but not always.