PIPI
EthereumPIPI is a Uniswap v4 hook on Ethereum. Brand new: its first pool went live today. Active: 110 trades in the last week, and 1 new pool this week.
- Contract name
- PIPI
How this hook works
Trading taxA trading tax hook. It takes a tax on trades, charges more right after launch and only lets approved callers create pools.
Takes a tax on trades
On top of the normal pool fee, it keeps part of each trade as a tax. Buys and sells can be charged differently. The tax can be changed. The tax builds up in the hook until it is collected.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata, SwapParams calldata params, bytes calldata) external onlyPoolManager returns (bytes4, int256, uint24) { if (!tradingEnabled) revert TradingNotOpen(); bool exactIn = params.amountSpecified < 0; // ETH is the specified side on exact-input buys and exact-output sells: tax it here. if (params.zeroForOne == exactIn) { uint256 amount = exactIn ? uint256(-params.amountSpecified) : uint256(params.amountSpecified); uint256 fee = _fee(amount, params.zeroForOne); if (fee > 0) { poolManager.take(address(0), address(this), fee); emit Taxed(params.zeroForOne, fee); return (this.beforeSwap.selector, int256(fee) << 128, 0); } } return (this.beforeSwap.selector, 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 (launchTaxActive):function launchTaxActive() public view returns (bool) { if (launchTaxEnded) return false; if (!tradingEnabled) return true; if (block.timestamp >= tradingEnabledAt + LAUNCH_TAX_DURATION) return false; if (LAUNCH_TAX_BUYS != 0 && buyCount >= LAUNCH_TAX_BUYS) return false; return true; }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 onlyPoolManager returns (bytes4) { if (sender != owner) revert NotOwner(); if (poolCreated) revert PoolAlreadyCreated(); if (key.currency0 != address(0) || key.currency1 != address(this) || key.hooks != address(this)) revert WrongPool(); if (key.fee & 0x800000 != 0) revert WrongPool(); // no dynamic-fee pools poolCreated = true; poolId = keccak256(abi.encode(key)); poolKey = key; emit PoolCreated(poolId, key.fee, key.tickSpacing); return this.beforeInitialize.selector; }No trading before the start
Trades are refused until trading has been opened.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata, SwapParams calldata params, bytes calldata) external onlyPoolManager returns (bytes4, int256, uint24) { if (!tradingEnabled) revert TradingNotOpen(); bool exactIn = params.amountSpecified < 0; // ETH is the specified side on exact-input buys and exact-output sells: tax it here. if (params.zeroForOne == exactIn) { uint256 amount = exactIn ? uint256(-params.amountSpecified) : uint256(params.amountSpecified); uint256 fee = _fee(amount, params.zeroForOne); if (fee > 0) { poolManager.take(address(0), address(this), fee); emit Taxed(params.zeroForOne, fee); return (this.beforeSwap.selector, int256(fee) << 128, 0); } } return (this.beforeSwap.selector, 0, 0); }
Who controls it: The hook developer can change when trading opens, the tax and the wallets that receive its fees. 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
- Opened trading 1 time
- Took its tax from a trade 1 time
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.