Uniswap V4 lets anyone create a pool with a "hook": a small program that runs before or after every swap in that pool. Hooks make new things possible — dynamic fees, limit orders, rewards. But a hook is code someone else wrote, running in the middle of your trade.

What is a Uniswap V4 hook — and why BlazePhoenix never lets one touch your amounts
Uniswap V4 pools can run extra code called hooks. A plain explanation of what hooks are, why some can be dangerous, and how BlazePhoenix screens them without ever calling them.
BlazePhoenix Engineering · article updated 2026-09-24 · site dataset through 2026-12-02 · 4 min · written from the deployed bytecode
| Level | Beginner |
|---|---|
| Reading time | 4 min |
| Sections | 6 |
| Updated | 2026-09-24 |
By Mitra (@Sigmacrit) — anonymous developer of the BlazePhoenix protocol. The code is the résumé.
Abstract in 15 languages · resumo · resumen · 摘要 · 要旨 · ملخص
English — What Uniswap V4 hooks are, why a hook that can change swap amounts is dangerous, and how BlazePhoenix leaves such pools out of your route by reading the hook address — without ever calling the hook.
Português — O que são os hooks do Uniswap V4, porque é que um hook que pode alterar os montantes da troca é perigoso, e como a BlazePhoenix deixa essas pools fora da sua rota lendo o endereço do hook — sem nunca o chamar.
Español — Qué son los hooks de Uniswap V4, por qué un hook que puede cambiar los montos del swap es peligroso, y cómo BlazePhoenix deja esos pools fuera de tu ruta leyendo la dirección del hook — sin llamarlo nunca.
Français — Ce que sont les hooks Uniswap V4, pourquoi un hook capable de modifier les montants d’un échange est dangereux, et comment BlazePhoenix écarte ces pools de votre route en lisant l’adresse du hook — sans jamais l’appeler.
Deutsch — Was Uniswap-V4-Hooks sind, warum ein Hook, der Swap-Beträge ändern kann, gefährlich ist, und wie BlazePhoenix solche Pools anhand der Hook-Adresse aus Ihrer Route lässt — ohne den Hook je aufzurufen.
Русский — Что такое хуки Uniswap V4, почему хук, способный менять суммы обмена, опасен, и как BlazePhoenix исключает такие пулы из маршрута, читая адрес хука — никогда его не вызывая.
Türkçe — Uniswap V4 hook’larının ne olduğu, takas tutarlarını değiştirebilen bir hook’un neden tehlikeli olduğu ve BlazePhoenix’in hook adresini okuyarak bu havuzları rotanızın dışında nasıl tuttuğu — hook’u hiç çağırmadan.
العربية — ما هي خطافات Uniswap V4، ولماذا يكون الخطاف القادر على تغيير مبالغ المبادلة خطيرًا، وكيف تستبعد BlazePhoenix هذه المجمّعات من مسارك بقراءة عنوان الخطاف — دون استدعائه أبدًا.
हिन्दी — Uniswap V4 hooks क्या हैं, swap की राशि बदल सकने वाला hook ख़तरनाक क्यों है, और BlazePhoenix hook का पता पढ़कर ऐसे पूल को आपके रूट से कैसे बाहर रखता है — hook को कभी कॉल किए बिना।
日本語 — Uniswap V4 のフックとは何か、スワップの金額を変えられるフックがなぜ危険か、そして BlazePhoenix がフックのアドレスを読むだけで——一度も呼ばずに——そうしたプールをルートから外す方法。
中文 — 什么是 Uniswap V4 hook,为什么能改动兑换金额的 hook 是危险的,以及 BlazePhoenix 如何仅通过读取 hook 地址——从不调用它——把这类池子排除在你的路由之外。
한국어 — Uniswap V4 훅이란 무엇인지, 스왑 금액을 바꿀 수 있는 훅이 왜 위험한지, 그리고 BlazePhoenix가 훅 주소를 읽는 것만으로 — 한 번도 호출하지 않고 — 그런 풀을 경로에서 빼는 방법.
Bahasa Indonesia — Apa itu hook Uniswap V4, mengapa hook yang dapat mengubah jumlah swap berbahaya, dan bagaimana BlazePhoenix mengeluarkan pool semacam itu dari rute Anda dengan membaca alamat hook — tanpa pernah memanggilnya.
বাংলা — Uniswap V4 hook কী, swap-এর পরিমাণ বদলাতে পারে এমন hook কেন বিপজ্জনক, এবং BlazePhoenix কীভাবে hook-এর ঠিকানা পড়েই — কখনো কল না করে — এমন পুল আপনার রুট থেকে বাদ দেয়।
Filipino — Ano ang mga Uniswap V4 hook, bakit mapanganib ang hook na kayang baguhin ang halaga ng swap, at paano inaalis ng BlazePhoenix ang ganitong pool sa ruta mo sa pagbasa ng address ng hook — nang hindi ito tinatawag.
The dangerous kind
Some hooks are allowed to change the amounts of the swap they are part of. A dishonest one could quietly take a slice of your trade. Asking the hook "are you honest?" does not help — a dishonest hook would just say yes.
How BlazePhoenix checks without asking
In V4, what a hook is allowed to do is written into the digits of its own address, and Uniswap enforces it. BlazePhoenix reads those digits with simple arithmetic. If the address says "this hook may change amounts", the pool is left out of your route entirely — before any token moves and without the hook ever being called.
- No call means no chance to lie.
- The pool is removed before the route is even built.
- Hooks that are allowed are pinned to their exact code, so they cannot be swapped out later.
A little deeper
Uniswap V4 is the fourth version of the largest decentralised exchange. Instead of one contract per pool, all V4 pools live inside one big contract, and each pool can attach a hook to add its own behaviour.
Most hooks are harmless or useful: a hook might adjust the fee when the market is busy, or reward people who provide liquidity. The risk comes from a small group of permissions that let a hook change how many tokens the swap moves. A dishonest hook with those permissions could shave value off every trade that passes through its pool.
The good news is that Uniswap made those permissions visible. They are written into the hook's address when it is created and cannot be changed later. BlazePhoenix reads the address, not the hook, and leaves out any pool whose hook could change your amounts.
That way you still get V4's liquidity — including native-ETH pools — without letting someone else's code decide how much you receive.
Key facts
A Uniswap V4 hook is code that runs before or after swaps in 1 pool. BlazePhoenix checks 2 permission bits in the hook address. BlazePhoenix calls the hook 0 times to decide whether it is safe. Pools with delta-changing hooks are left out of 100% of BlazePhoenix routes.
The bottom line
BlazePhoenix reads what a hook is allowed to do from its address, and keeps any hook that could change your amounts out of your trade.
Do not trust this page — reproduce it
Every claim above is checkable against the chain. Start here:
read the advanced version: https://blazephoenix.xyz/learn/hook-gate-by-arithmeticCite this article
Licensed CC BY-NC-ND 4.0: quote and cite it with attribution and a link. Commercial use and derivative versions need written permission from BlazePhoenix; translations are made by BlazePhoenix. Copy a ready-made citation:
BlazePhoenix (2026). What is a Uniswap V4 hook — and why BlazePhoenix never lets one touch your amounts. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/what-is-a-v4-hook-simple/@misc{blazephoenix_what_is_a_v4_hook_simple,
title = {What is a Uniswap V4 hook — and why BlazePhoenix never lets one touch your amounts},
author = {BlazePhoenix},
year = {2026},
url = {https://blazephoenix.xyz/learn/what-is-a-v4-hook-simple/},
note = {Accessed: reproduce the claim with the command above}
}Writing an answer, a wiki entry or a paper? The claim above is reproducible against the chain before you quote it — which is the only sound basis for citing a technical source at all.
Contracts are verified on every chain we deploy to — addresses in the protocol manifest. Deeper formal treatment: the whitepaper (PDF).
Related engineering
Questions, a partnership or a bug to report? Contact us or email contact@blazephoenix.xyz