Likely fee sharing hook on Base
Uniswap v4 Hook Contract 0x35c7575f46c35e6175370c9217cfba5567248044 on Base · Fee sharing
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 1
- Swaps (24h)
- 318 (101 traders)
- Total swaps
- 318
What it does
This hook takes a fixed basis-point fee from swap output during a time window and sends it to a treasury, so trades in the taxed direction pay more while the pool's static fee is unchanged.
How it works step by step
- Enables afterSwap with an afterSwapReturnDelta, so the hook can take a cut of the swap's output currency after the trade executes.
- Exposes a fixed fee in basis points (FEE_BPS / feeBps) that is taken from swaps and routed to a treasury address.
- Uses a time window (WINDOW, openedAt, endsAt, inWindow) that gates when the fee applies or the hook is active.
- Calls take on the pool manager to move the fee amount from the pool to the treasury.
- Exposes a token() getter, suggesting the hook is tied to a specific token, likely the one whose trades are taxed.
- Swap behaviour
- After each swap the hook may take a fee in the output currency via return delta and send it to the treasury. Whether this applies depends on the time window (inWindow) and on swap direction, which cannot be fully confirmed from decoded bytecode.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- A fixed fee in basis points (FEE_BPS, read via feeBps) is taken from swap output and sent to the treasury; the pool's own static fee is not changed.
- Owner & admin controls
- No admin controls found. Treasury and token are exposed as pure getters with no setter selectors observed, so parameters appear immutable.
Enabled Uniswap v4 callbacks
afterSwap, afterSwapReturnDelta
afterSwap is used to compute and take the fee after each swap; afterSwapReturnDelta lets the hook claim a portion of the swap's output currency.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: No owner or setter selectors were found, so the treasury recipient and fee rate appear fixed; a privileged key does not appear to exist, though this is not confirmed without source.
Risk to user funds: The hook can take a percentage of swap output and send it to the treasury via return delta and take; it does not appear to hold user funds long-term, but it does move currency on each eligible swap.
Security findings
- [medium] Hook takes currency via return delta: afterSwapReturnDelta plus a take call means the hook moves swap output currency to the treasury on every eligible swap, so traders pay an extra cost.
- [low] Time-window gating: Behaviour depends on inWindow, openedAt and endsAt; the fee may apply only during a launch window, which is determined by immutable constants or set at initialization.
- [info] Hardcoded fee and treasury: FEE_BPS and treasury are pure getters with no observed setter, indicating fixed economics without an owner-controlled fee change.
Contract details
- Verified source
- No
- Bytecode size
- 2,906 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta