LeverageHook
EthereumLeverageHook is a Uniswap v4 hook on Ethereum. Brand new: its first pool went live today. Still in use: 22 trades in the last week, and 1 new pool this week.
- Contract name
- LeverageHook
How this hook works
Trading taxA trading tax hook. It takes a cut of every trade, keeps rewards to claim and only lets approved callers create pools.
Takes a cut of every trade
On top of the normal pool fee, it keeps a share of each trade. It can never be above 5%. The fee builds up in the hook until it is collected.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata key, SwapParams calldata params, bytes calldata) external onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { // ETH (currency0) is specified when zeroForOne && exact-in, or !zeroForOne && exact-out. bool exactIn = params.amountSpecified < 0; if (params.zeroForOne != exactIn) return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0); uint256 amt = exactIn ? uint256(-params.amountSpecified) : uint256(params.amountSpecified); uint256 fee = _take(key, amt); return (IHooks.beforeSwap.selector, toBeforeSwapDelta(int128(int256(fee)), 0), 0); }Rewards to claim
It keeps track of what people have earned, and they claim it themselves.
The code that does this (claim):function claim(address who) external returns (uint256 amount) { amount = pending[who]; if (amount == 0) return 0; pending[who] = 0; SafeTransferLib.safeTransferETH(who, amount); emit Claimed(who, amount); }Only approved callers create pools
New pools with this hook can only be created by approved callers, for example its own factory or launcher.
The code that does this (beforeInitialize):function beforeInitialize(address sender, PoolKey calldata key, uint160) external view onlyPoolManager returns (bytes4) { if (sender != factory || !_pools[key.toId()].registered) revert NotFactory(); return IHooks.beforeInitialize.selector; }
Who controls it: The hook developer can change which launcher it works with. The code cannot be changed.
Based on the hook’s published code.What do these labels mean?
Safety report
Before you build on it. Automated checks, not an auditWhat it can do
Its code executes inside each trade in pools that use it.
It can take or add tokens during a swap. Fees, burns and custom curves work this way, and so do scams.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
- Fee 22 times
Latest transactions
- 0x334cefcd…b0f3b1 block 26,478,424
- 0x969440d3…482614 block 26,478,406
- 0x1a3d2e19…bc4923 block 26,478,406
- 0x95a095af…11736a block 26,478,396
- 0x43922051…5517c6 block 26,478,389
- 0x1ef460e2…4f836f block 26,478,384
- 0x3a044dc0…0e9cf4 block 26,478,383
- 0x95c91a6d…6153c7 block 26,478,382
- 0x365c36ec…8531cb block 26,478,378
- 0xa65735eb…ea46a4 block 26,478,376
Settings changes: set up a pool (1 time).
Counted from what the hook recorded on-chain across all its pools, for every action in its published code, plus token transfers in and out of it.