UniHooks

SwapHook

BaseRegistered

Observation hook that counts the number of beforeSwap and afterSwap calls per pool ID. beforeAddLiquidity and beforeRemoveLiquidity are implemented as no-ops that simply return their selector.

0xdca7a1dc2eadb34387630d2353e30f6cc0398ac0 First pool 11 Feb 2025View on explorer
ALooks safeRegistered, verified, immutable
Pools
5
Dynamic-fee pools
0
Last new pool
20mo
Code size
3,044 B

What it can do

Runs code on every swap

Its code executes inside each trade in pools that use it.

Can block LP withdrawals

It runs before liquidity is removed, so it can delay or refuse LP exits.

Gates who can add liquidity

It checks every deposit before it goes in.

Safety report

Automated checks, not an audit
✓Not upgradeableNo proxy pattern found: the code is fixed.
✓No owner foundNo owner() function: nobody has an admin switch (as far as the standard check goes).
✓Listed in Uniswap’s hook registryRegistered with Uniswap Labs (a listing, not a security review).
✓Source code publishedThe code on the block explorer matches what's deployed (contract: SwapHook).
?No audit linkedAutomated checks only.

Pools using this hook

5 total
PairCreatedFeePool ID
ETH / TIKTOK USA 20mo 0.01% 0x17dd…c8fe Tx ↗
ETH / Tinky 20mo 0.30% 0x23bf…5fcf Tx ↗
ETH / ALB 20mo 0.30% 0x2e29…25fa Tx ↗
ETH / CBTST 21mo 0.01% 0x3eba…ccf4 Tx ↗
ETH / CBTST 21mo 0.30% 0x447d…934d Tx ↗