Fee sharing hook on Ethereum
Uniswap v4 Hook Contract 0x76887bac805cfecfdfca663fff6fbd0d277000cc on Ethereum · Fee sharing
- Volume (24h)
- $6.94K
- Value locked (TVL)
- $851
- All-time volume
- $54.12K
- Pools using this hook
- 1
- Swaps (24h)
- 27 (16 traders)
- Total swaps
- 409
What it does
Every trader pays the same fixed extra fee on each swap, sent to a fixed fee wallet, while LPs can add and remove liquidity freely.
How it works step by step
- Charges a fixed fee on every swap in pools that use this hook.
- Sends the fee straight to a single fee wallet set when the contract was deployed, using the Uniswap v4 take function.
- Keeps a running total of fees sent, which anyone can read.
- Has no owner functions; the fee rate and fee wallet appear fixed (read-only FEE_BPS and feeWallet values).
- Swap behaviour
- On each swap the hook takes a fixed fee, either from the input before the swap or from the output after it, and sends it to the fee wallet. The exact fee rate is a constant that cannot be read from the decoded bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- A fixed fee (FEE_BPS, a constant whose value is not visible here) is deducted from swaps and transferred to a fixed fee wallet, on top of the pool's normal LP fee. There is no function to change the rate.
- Owner & admin controls
- No admin controls found; the fee rate and fee wallet are read-only values with no setter functions.
Enabled Uniswap v4 callbacks
beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeSwap: works out the fee and may deduct it from the swap input; afterSwap: takes the fee from the swap output and sends it to the fee wallet; beforeSwapReturnDelta and afterSwapReturnDelta: let the hook adjust swap amounts to collect the fee.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, medium confidence).
Who controls it: No privileged keys were found. The fee wallet only receives fees and cannot change settings.
Risk to user funds: The hook takes only the fixed swap fee from traders' swap amounts, at an exact rate that is unverified. LP principal cannot be locked or drained.
Security findings
- [medium] Unverified swap fee size: The hook deducts a fee from swaps using return deltas, but the fee rate is a constant whose value cannot be confirmed from bytecode. Check the FEE_BPS value onchain before trading.
- [info] No admin and free LP withdrawals: There are no setter or owner functions, the contract is not a proxy, and remove-liquidity callbacks are disabled, so LPs can always withdraw.
Contract details
- Verified source
- No
- Bytecode size
- 2,123 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Fee sharing hook
- ETH / RADVAC (0.00% fee) — 24h volume $6.94K, TVL $851, 27 swaps today