Likely dynamic fee hook on Ethereum
Uniswap v4 Hook Contract 0x80ba20e5013318a7c61c87758a5c01592c1c0080 on Ethereum · Dynamic fee
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 3
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 0
What it does
A Uniswap v4 hook that runs custom logic before each swap and keeps a registry of pool creators, though its exact swap behaviour cannot be confirmed without verified source.
How it works step by step
- Runs custom logic in beforeSwap before every swap on pools using this hook
- Stores a mapping from pool id (bytes32) to creator address in storage slot 0
- Exposes poolCreators and getPoolCreator to look up the creator of a pool
- Writes pool creator entries via the selector 0xc8dc5568 during pool setup
- Swap behaviour
- Calls beforeSwap, which is nonpayable and writes to storage on each swap; the specific effect cannot be determined from the decoded bytecode.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Uses the pool's static fee.
- Owner & admin controls
- Not stated.
Enabled Uniswap v4 callbacks
beforeSwap
beforeSwap: runs custom logic before each swap, with the swap parameters available to the hook.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: No owner or admin functions were identified in the decoded selectors, so no privileged key was found.
Risk to user funds: Only beforeSwap is enabled, so the hook is called on swaps. Without source it cannot be determined whether it takes tokens, returns deltas, or can block swaps.
Security findings
- [medium] Unverified source: No verified source is available, so the purpose of beforeSwap and its state changes cannot be confirmed from the code.
- [info] State written during swaps: beforeSwap is nonpayable and writes storage slot 0 (a mapping of uint256 to address) during the swap path, so the hook can mutate state on every swap.
- [info] Pool creator registry: The contract stores pool creator data (poolCreators, getPoolCreator) keyed by pool id, which suggests it tracks which address created each pool.
Contract details
- Verified source
- No
- Bytecode size
- 7,830 bytes
- Upgradeable proxy
- No
Pools using Likely dynamic fee hook
- ETH / BBUSD (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / BBUSD (0.05% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / yaySTONE (0.01% fee) — 24h volume $0, TVL $0, 0 swaps today