Uniswap v4 hooks are changing how decentralized trading works. Up to Uniswap v3, there was one main question: at what price should liquidity sit? In v4 a second question appears: what rules does this pool follow?
That rule is a hook. The Uniswap v1 to v4 beginner guide treats the versions as one machine. This post covers the specific plug-in that these modern liquidity pools can attach.
What a hook is
A Uniswap v4 hook is a smart contract bound to a pool. It can run before or after a swap, and when liquidity is added or removed.
Not every v4 pool has a hook. With no hook, the pool still uses concentrated liquidity, much like v3.
Think of a traditional shop. The pool is the shop itself. Liquidity acts as the shelves. The hook functions as the checkout rule. This rule can change trading fees, reject a huge order, or burn tokens after a trade finishes. It is written in code, not posted as a notice on the door.
A hook is chosen permanently when the pool is created. You cannot bolt a different hook onto that pool later. Attach a rule, and you also attach that rule’s underlying bugs.
What hooks do
Common Uniswap v4 hooks include rules to:
- Raise or cut fees when market volatility changes
- Hold a tight spread on a stablecoin pair
- Cap a large swap to prevent heavy slippage
- Burn part of a token supply automatically after a swap
- Admit only approved wallets to trade
A good hook changes the shop’s core policy safely. The catch is that a hook can make the moment you see a quote completely different from the moment your tokens actually move.
Why quotes and fills can differ
An estimated swap amount usually follows a strict path:
- The router asks the pool for a price quote.
- The pool and its integrated hook answer: at this price, you get this much.
- Your wallet interface shows that estimate.
- You sign and send the transaction to the network.
- The hook runs again as the swap executes on-chain.
The dangerous gap sits between step 4 and step 5.
Imagine this scenario: You want to swap 1 ETH for a new token. Your wallet preview (Step 3) proudly shows an estimate of 1,000 ABC tokens. You sign the transaction. However, if the hook applies a fee that the preview did not show during Step 5, a hidden transfer rule is triggered. You end up receiving only 500 ABC tokens instead of 1,000.
Normal gaps vs. Abnormal gaps
Normal gap example: Someone else trades right before you in the same block. Market prices shift slightly due to gas delays. You expected 1,000 tokens, but safely receive 995 tokens—a tiny difference that stays well within the 0.5% slippage tolerance you set.
Abnormal gap example: The initial preview quote looks exceptionally generous, but the final fill runs entirely different internal logic. A hidden fee or tax function never appeared in the preview, causing your final balance to collapse.
Independent security reviews of hooks across several chains have flagged many deployments as unsafe. In some reported cases, the final filled amount dropped close to half of the original preview quote.
Not every Uniswap v4 hook is a scam. However, simply checking the pool address is no longer enough. The unique hook attached to that pool is a critical part of your trade terms.
What to check before a swap
Before you swap through a pool with Uniswap v4 hooks, keep these practical safety steps in mind:
- Are you interacting with the official Uniswap interface?
- If the pool features a hook, does it have a clear name, public documentation, and a professional security audit?
- Is the quote wildly far from recent market fills?
- Is your slippage tolerance left dangerously wide open?
- Does a newly launched token insist that you use only its own custom hook pool?
Deep liquidity books and thoroughly documented hooks represent the safer end of decentralized finance. Setting a minimum-received limit near zero lets unexpected fills pass right through your wallet.
What to remember
A quote is the answer when you ask. A fill is the answer when you pay. Price movement in between is normal. A hook that shows two faces is not.
You can learn more about how different versions evolved in the Uniswap v1 to v4 beginner guide.
This post is strictly educational. It does not recommend any specific token, project, or liquidity pool.
Uniswap v4 hooks FAQ
Do all v4 trades use a hook? No. Uniswap v4 hooks are entirely optional. With none attached, the pool behaves much like v3.
Is a slightly worse fill considered a scam? A small gap inside your strict slippage limit (like getting 995 instead of 1,000 tokens) is common. A massive collapse in size is a reason to stop and inspect the hook code.
Are Uniswap v4 hooks always dangerous? No. You just need to separate hooks with public documentation and audits from unverified custom code.