Dynamic fee hook on Base
Uniswap v4 Hook Contract 0x1926e5f1188566f76243fd4cdcb6ad4632b08088 on Base · Dynamic fee
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 1
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 0
What it does
This hook runs custom logic before each swap and can take a share of swap value through a return delta, but without source it is not possible to say which trades pay more or less.
How it works step by step
- Implements beforeSwap, which runs before every swap on pools that use this hook
- Uses beforeSwapReturnDelta, so it can return a delta that changes the amounts settled for the swap
- Calls take on the PoolManager, which moves currency from the pool to the hook or a recipient during the swap
- Writes four storage slots (0 to 3) during beforeSwap, and a view function (0x877e1083) reads them back
- Source is not available, so the exact pricing or accounting logic cannot be confirmed from bytecode alone
- Swap behaviour
- beforeSwap runs on each swap, can move currency via take, and can adjust the swap through a return delta. Which trades pay more or less cannot be determined from the decoded bytecode.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Fee logic cannot be determined from the decoded bytecode; the hook does not appear to use a dynamic fee override, but it can alter amounts through its return delta.
- Owner & admin controls
- No admin controls found in the decoded bytecode, though the storage writes may reflect configurable state that cannot be identified without source.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap is used to run custom logic and set the swap delta before each swap is executed; beforeSwapReturnDelta lets the hook take a share of the swap amounts; no other callbacks are enabled.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: Without source it is unknown whether a privileged key controls the storage values that set the delta; if it does, that key could change how much value each swap moves.
Risk to user funds: The hook can take currency via take and adjust swap amounts through its return delta, so it can move pool and trader funds during swaps.
Security findings
- [high] Return delta can redirect swap value: beforeSwapReturnDelta is enabled and the hook calls take, so it can take part of each swap's value out of the pool without the pool's own pricing controlling that amount.
- [medium] Unverified source: No verified source is available, so the logic that sets the delta and the storage writes cannot be audited.
- [low] Storage written on every swap: beforeSwap writes four storage slots, which may indicate stateful accounting that could be manipulated across swaps.
Contract details
- Verified source
- No
- Bytecode size
- 887 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Dynamic fee hook
- ETH / CROWD (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today