PepeHook
EthereumPepeHook is a Uniswap v4 hook on Ethereum. Live for 3 days. Active: 248 trades in the last week, and 3 new pools this week.
- Contract name
- PepeHook
How this hook works
Trading taxA trading tax hook. It takes a tax on trades, charges more right after launch and limits trading to stop bots.
Takes a tax on trades
On top of the normal pool fee, it keeps part of each trade as a tax. The normal rate in the code is 1%. The tax builds up in the hook until it is collected.
The code that does this (beforeSwap):function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata hookData) external onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { (bool pepeIsZero, address token) = _layout(key); bool isBuy = params.zeroForOne == pepeIsZero; // input currency is PEPE bool exactIn = params.amountSpecified < 0; if (exactIn != isBuy) return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0); uint256 fee; uint256 tax; if (isBuy) { uint256 amt = uint256(-params.amountSpecified); uint256 total = amt * _totalBps(token, sender, hookData) / 10_000; fee = amt * FEE_BPS / 10_000; tax = total - fee; } else { fee = uint256(params.amountSpecified) * FEE_BPS / (10_000 - FEE_BPS); } if (fee + tax == 0) return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0); _charge(key, pepeIsZero, token, isBuy, fee, tax); return (IHooks.beforeSwap.selector, toBeforeSwapDelta(int128(uint128(fee + tax)), 0), 0); }Higher at launch
The tax starts higher right after launch and comes down over time, which makes it costly for bots to buy first.
The code that does this (sniperBps):function _sniperBps(address token, address buyer) private view returns (uint256) { if (buyer != address(0) && sniperExempt[token][buyer]) return 0; uint256 at = launchedAt[token]; uint256 window = sniperWindow; if (at == 0 || window == 0) return 0; uint256 elapsed = block.timestamp - at; if (elapsed >= window) return 0; return (uint256(sniperStartBps) - FEE_BPS) * (window - elapsed) / window; }Limits on trading
It limits trading, for example a max buy or wallet size or a wait between trades, to stop bots grabbing the supply before real traders.
The code that does this (setSniper):function setSniper(uint32 window, uint16 startBps) external onlyFactory { if (window > MAX_SNIPER_WINDOW || startBps > MAX_SNIPER_BPS || startBps < FEE_BPS) revert OutOfBounds(); sniperWindow = window; sniperStartBps = startBps; emit SniperSet(window, startBps); }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, uint160) external view onlyPoolManager returns (bytes4) { if (sender != factory) revert NotFactory(); return IHooks.beforeInitialize.selector; }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(address token) external returns (uint256 creatorAmount, uint256 treasuryAmount) { Fees memory f = accrued[token]; (creatorAmount, treasuryAmount) = (f.creatorAmount, f.treasuryAmount); if (creatorAmount == 0 && treasuryAmount == 0) return (0, 0); delete accrued[token]; address creator = IPepeFactory(factory).creatorOf(token); address treasury = IPepeFactory(factory).treasury(); if (creatorAmount != 0) IERC20(pepe).safeTransfer(creator, creatorAmount); if (treasuryAmount != 0) IERC20(pepe).safeTransfer(treasury, treasuryAmount); emit FeesCollected(token, creator, creatorAmount, treasury, treasuryAmount); }
Who controls it: Nobody. The hook has no admin functions, and 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 auditsetSniperWhat 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
- Took its fee from a trade 247 times
Latest transactions
- 0x315aaf5e…508aa3 block 26,460,322 · 79.3k FEELS
- 0xf62e5515…f16dd4 block 26,460,322 · 389.6k FEELS
- 0x93ed9e09…2996d4 block 26,460,318 · 80.6k PEFU
- 0x934b0441…627a84 block 26,460,315 · 92.8k FEELS
- 0xd73f48c7…9820f4 block 26,460,315 · 806.6k PEFU
- 0x33abe217…73f02b block 26,460,312 · 133.5k PEFU
- 0x339512d9…a3ee88 block 26,460,311 · 1.9k FEELS
- 0xfc4b128e…84c73a block 26,460,308 · 546.8k FEELS
- 0xf17294d9…0a2651 block 26,460,304 · 41.8k PEFU
- 0x216370ad…f84223 block 26,460,303 · 242.4k PEFU
- Took its fee from a trade 14 times
Latest transactions
- 0x02950a39…ed27c4 block 26,460,313 · 931.5k PEFU
- 0xf123ee8e…3c1a10 block 26,460,287 · 715.3k PEFU
- 0x449d0eed…389714 block 26,460,261 · 2.40M PEFU
- 0xf519cef6…1334e2 block 26,460,234 · 861.7k FEELS
- 0x489f6fe5…3ef15d block 26,460,230 · 3.74M PEFU
- 0x586d9608…59f1d0 block 26,460,204 · 7.58M FEELS
- 0xb97c4420…a02f08 block 26,460,203 · 3.42M PEFU
- 0x8cacff07…91c5c3 block 26,460,176 · 4.66M FEELS
- 0x986efd60…b458f0 block 26,460,175 · 1.38M PEFU
- 0xc23f92b3…ff5818 block 26,460,149 · 887.7k PEFU
- Registered a launch 3 times
Latest transactions
- 0x590276bb…782871 block 26,460,189
- 0xf1d1b9e6…1019b6 block 26,460,070
- 0x258589f2…10f8a1 block 26,460,067
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.