AutumnHook
ArbitrumAutumnHook is a Uniswap v4 hook on Arbitrum. Brand new: its first pool went live today. Still in use: 2 trades in the last week, and 4 new pools this week.
- Contract name
- AutumnHook
How this hook works
Trading taxA trading tax hook. It takes a cut of every trade and only takes simple trades.
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 override onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { if (_entered) revert Reentrancy(); Launch storage launch = _launch(key); if (params.amountSpecified >= 0 || params.amountSpecified == type(int256).min) { revert ExactOutputUnsupported(); } uint256 amountIn = uint256(-params.amountSpecified); Currency input = params.zeroForOne ? key.currency0 : key.currency1; uint256 fee = Currency.unwrap(input) == launch.quote ? _charge(key, launch, amountIn) : 0; BeforeSwapDelta delta = fee == 0 ? BeforeSwapDeltaLibrary.ZERO_DELTA : toBeforeSwapDelta(int128(int256(fee)), 0); return (IHooks.beforeSwap.selector, delta, 0); }Simple trades only
Trades must state the amount going in, not the amount coming out.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata key, SwapParams calldata params, bytes calldata ) external override onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { if (_entered) revert Reentrancy(); Launch storage launch = _launch(key); if (params.amountSpecified >= 0 || params.amountSpecified == type(int256).min) { revert ExactOutputUnsupported(); } uint256 amountIn = uint256(-params.amountSpecified); Currency input = params.zeroForOne ? key.currency0 : key.currency1; uint256 fee = Currency.unwrap(input) == launch.quote ? _charge(key, launch, amountIn) : 0; BeforeSwapDelta delta = fee == 0 ? BeforeSwapDeltaLibrary.ZERO_DELTA : toBeforeSwapDelta(int128(int256(fee)), 0); return (IHooks.beforeSwap.selector, delta, 0); }Anyone can trigger payouts
Anyone can collect the fees it has built up, so nobody has to wait on the hook developer.
The code that does this (collect):function collect(PoolId poolId) external nonReentrant { Launch storage launch = launches[poolId]; if (launch.creator == address(0)) revert NotAutumnPool(); uint256 amount = launch.accrued; if (amount == 0) revert NothingToCollect(); launch.accrued = 0; poolManager.unlock(abi.encode(poolId, amount)); }
Who controls it: The hook developer can change which launcher it works with. The pool creator can change the settings of its pools. 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.
Hook history
- Registered a new pool 4 times
Latest transactions
- 0x4bea953e…b2c78a block 525,688,379 · 2 times in this transaction
- 0x26a3d2fd…da3218 block 525,688,336 · 2 times in this transaction
- Took its fee from a trade 2 times
Latest transactions
- 0xc3f4fac3…1e334d block 525,689,048
- 0x74357258…ca9e0a block 525,688,687
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.
Pools
4 totalOnly pools with trades in the last 7 days are listed here: 1 of 4. See all, newest first.