Fee sharing hook on Ethereum
Uniswap v4 Hook Contract 0x2e522de063a9442ab465f241003ebb49e01bc888 on Ethereum · Fee sharing
- Volume (24h)
- $107
- Value locked (TVL)
- $0
- All-time volume
- $107
- Pools using this hook
- 1
- Swaps (24h)
- 16 (3 traders)
- Total swaps
- 16
What it does
A fee-sharing hook that manages its own liquidity position and takes a share of swap flow via return deltas, with accrued fees claimable by the owner-controlled recipient.
How it works step by step
- Gates liquidity additions on beforeAddLiquidity for a hook-managed position
- Runs beforeSwap logic that can rebalance the managed position and accrue fees
- Uses beforeSwapReturnDelta to take a share of swap currency
- Tracks accrued fees and exposes claimFees for the fee recipient
- Uses unlock callbacks and take/transfer to move currency during rebalances
- Owner can transfer or renounce ownership
- Swap behaviour
- beforeSwap runs on every swap and, through beforeSwapReturnDelta, can adjust the swap delta so the hook captures part of the traded currency as fees or rebalancing proceeds.
- Liquidity behaviour
- beforeAddLiquidity is enabled and the contract tracks LP position state (lpInfo, hookLiquidity, tickLower/tickUpper, sqrtLower/sqrtUpper); it appears to manage a single managed liquidity position via unlock callbacks, so liquidity additions are gated by the hook.
- Fee behaviour
- Hook accrues fees (accruedFees, claimFees) and routes them to a fee recipient; swaps can take a return delta, so the hook captures part of swap flow rather than only using the static pool fee.
- Owner & admin controls
- Owner (storage slot 0) can transfer ownership and renounce it; owner-gated functions include ownership transfer and renounce. Owner can also claim fees via claimFees and the contract exposes a settable feeRecipient-style flow through rebalancing (8010824e). Source unavailable so exact parameter-change permissions are inferred from selectors only.
Enabled Uniswap v4 callbacks
beforeAddLiquidity, beforeSwap, beforeSwapReturnDelta
beforeAddLiquidity gates or initialises liquidity additions for the hook-managed position; beforeSwap runs rebalancing/fee logic before each swap; beforeSwapReturnDelta lets the hook alter swap deltas, meaning it can take or give currency during swaps.
Security & trust assessment
Risk level: high (decoded bytecode, low confidence).
Who controls it: The owner controls ownership transfer and fee claiming; an owner key compromise could redirect accrued fees via fee recipient logic or abuse the hook-managed position.
Risk to user funds: The hook can take currency via return deltas during swaps and move liquidity through its unlock callback, so swapper and LP funds are exposed to hook logic and owner-controlled fee routing.
Security findings
- [high] Swap return delta can move user currency: beforeSwapReturnDelta is enabled, so the hook can take tokens from swaps through return deltas.
- [medium] Owner-controlled fee claiming: Owner can transfer or renounce ownership and claim accrued fees; no timelock is evident from the selectors.
- [medium] Hook moves pool currency via self-unlock: The hook uses unlock and take/transfer calls with self-unlock, so it moves pool currency and ERC20 balances during rebalances.
- [info] Source not verified: Without verified source the exact rebalance trigger and fee recipient mutability cannot be confirmed.
Contract details
- Verified source
- No
- Bytecode size
- 14,064 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc20, fee-sharing, moves-currency, ownable, return-delta, self-unlock
Pools using Fee sharing hook
- ETH / GAVEL (Dynamic fee) — 24h volume $107, TVL $0, 16 swaps today