LeveragedLaunchHook
EthereumLeveragedLaunchHook is a Uniswap v4 hook on Ethereum. Live for 2 days. Active: 119 trades in the last week, and 1 new pool this week.
- Contract name
- LeveragedLaunchHook
How this hook works
Trading taxA trading tax hook. It takes a cut of every trade, manages its own liquidity and trades on its own.
Takes a cut of every trade
On top of the normal pool fee, it keeps a share of each trade. The fee can be changed, but never above 5%. The fee 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) external onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { PoolId poolId = key.toId(); Market storage m = _markets[poolId]; if (m.launchToken == address(0)) revert MarketNotFound(); bool isBuy = (params.zeroForOne == m.reserveIsCurrency0); bool exactIn = params.amountSpecified < 0; // If market is still on curve, check if USD oracle appreciation already triggered graduation. if (!m.graduated && m.realReserve > 0 && _isUsdGraduationMet(m)) { _graduateInLock(poolId, key); } if (!m.graduated) { BeforeSwapDelta delta = _handleCurveSwap(poolId, key, m, sender, isBuy, exactIn, params.amountSpecified); return (this.beforeSwap.selector, delta, 0); } // Post-graduation: collect fee in reserveToken whenever reserveToken is the specified currency. uint16 feeBps = totalFeeBps; bool reserveIsSpecified = (isBuy && exactIn) || (!isBuy && !exactIn); if (feeBps > 0 && reserveIsSpecified) { uint256 fee; if (exactIn) { fee = CurveMath.feeFromGross(uint256(-params.amountSpecified), feeBps); // …Manages its own liquidity
It adds and removes liquidity itself, so it can own part or all of the pool.
The code that does this (addLockedLiquidity):function _addLockedLiquidity( PoolKey memory key, bool reserveIsCurrency0, int24 tickLower, int24 tickUpper, uint128 liquidity ) internal returns (uint256 reserveUsed, uint256 tokensUsed) { (BalanceDelta lpDelta,) = poolManager.modifyLiquidity( key, ModifyLiquidityParams({ tickLower: tickLower, tickUpper: tickUpper, liquidityDelta: int256(uint256(liquidity)), salt: bytes32(0) }), "" ); uint256 used0 = lpDelta.amount0() < 0 ? uint256(uint128(-lpDelta.amount0())) : 0; uint256 used1 = lpDelta.amount1() < 0 ? uint256(uint128(-lpDelta.amount1())) : 0; if (used0 > 0) _payPoolManager(key.currency0, used0); if (used1 > 0) _payPoolManager(key.currency1, used1); (reserveUsed, tokensUsed) = reserveIsCurrency0 ? (used0, used1) : (used1, used0); }Trades on its own
It makes trades itself, for example to convert the fees it collected.
The code that does this (graduateInLock):function _graduateInLock(PoolId poolId, PoolKey memory key) internal { Market storage m = _markets[poolId]; if (m.graduated) return; uint256 reserveForLP = uint256(m.realReserve); if (reserveForLP == 0) revert GraduationTargetNotMet(); uint256 x = uint256(m.virtualReserve) + reserveForLP; uint256 remainingTokens = uint256(m.virtualToken) - uint256(m.tokensSold); // Exact continuous price match: P_grad = x / remainingTokens => tokensForLP = reserveForLP * remainingTokens / x uint256 tokensForLP = FullMath.mulDiv(reserveForLP, remainingTokens, x); if (tokensForLP == 0) revert GraduationTargetNotMet(); uint160 targetSqrtPriceX96 = m.reserveIsCurrency0 ? PriceMath.encodeSqrtPriceX96(tokensForLP, reserveForLP) : PriceMath.encodeSqrtPriceX96(reserveForLP, tokensForLP); // Move slot0.sqrtPriceX96 to exact graduation price while active liquidity == 0 (costs 0 tokens). (uint160 currentSqrtPriceX96,,,) = poolManager.getSlot0(poolId); if (currentSqrtPriceX96 != targetSqrtPriceX96) { bool zeroForOne = targetSqrtPriceX96 < currentSqrtPriceX96; poolManager.swap( key, SwapParams({zeroForOne: zeroForOne, amountSpecified: -1, sqrtPriceLimitX96: targetSqrtPriceX96}), "" ); } int24 tickLower = PriceMath.minUsableTick(key.tickSpacing); int24 tickUpper = PriceMath.maxUsableTick(key.tickSpacing); // …Burns tokens
It destroys some tokens (or sends them to an address nobody controls), so there are fewer of them.
The code that does this (graduateInLock):function _graduateInLock(PoolId poolId, PoolKey memory key) internal { Market storage m = _markets[poolId]; if (m.graduated) return; uint256 reserveForLP = uint256(m.realReserve); if (reserveForLP == 0) revert GraduationTargetNotMet(); uint256 x = uint256(m.virtualReserve) + reserveForLP; uint256 remainingTokens = uint256(m.virtualToken) - uint256(m.tokensSold); // Exact continuous price match: P_grad = x / remainingTokens => tokensForLP = reserveForLP * remainingTokens / x uint256 tokensForLP = FullMath.mulDiv(reserveForLP, remainingTokens, x); if (tokensForLP == 0) revert GraduationTargetNotMet(); uint160 targetSqrtPriceX96 = m.reserveIsCurrency0 ? PriceMath.encodeSqrtPriceX96(tokensForLP, reserveForLP) : PriceMath.encodeSqrtPriceX96(reserveForLP, tokensForLP); // Move slot0.sqrtPriceX96 to exact graduation price while active liquidity == 0 (costs 0 tokens). (uint160 currentSqrtPriceX96,,,) = poolManager.getSlot0(poolId); if (currentSqrtPriceX96 != targetSqrtPriceX96) { bool zeroForOne = targetSqrtPriceX96 < currentSqrtPriceX96; poolManager.swap( key, SwapParams({zeroForOne: zeroForOne, amountSpecified: -1, sqrtPriceLimitX96: targetSqrtPriceX96}), "" ); } int24 tickLower = PriceMath.minUsableTick(key.tickSpacing); int24 tickUpper = PriceMath.maxUsableTick(key.tickSpacing); // …Uses an outside price feed
It reads a price from an outside source (an oracle) and uses it in its rules.
The code that does this (getReserveValueUsd):function _getReserveValueUsd(address reserveToken, uint256 reserveAmount) internal view returns (uint256) { ReserveConfig storage cfg = _reserves[reserveToken]; if (cfg.usdPriceFeed == address(0) || reserveAmount == 0) return 0; (, int256 answer,, uint256 updatedAt,) = IAggregatorV3(cfg.usdPriceFeed).latestRoundData(); if (answer <= 0) return 0; if (cfg.maxOracleStaleness > 0 && block.timestamp - updatedAt > cfg.maxOracleStaleness) { return 0; } uint8 feedDecimals = IAggregatorV3(cfg.usdPriceFeed).decimals(); // Returns USD value scaled to 1e18 (assuming 18-decimal ERC-20 leveraged reserve token). return FullMath.mulDiv(reserveAmount, uint256(answer), 10 ** feedDecimals); }Rewards to claim
It keeps track of what people have earned, and they claim it themselves.
The code that does this (claimCreatorFees):function claimCreatorFees(PoolId poolId) external override nonReentrant returns (uint256 amount) { Market storage m = _markets[poolId]; if (m.launchToken == address(0)) revert MarketNotFound(); if (msg.sender != m.feeRecipient) revert NotFeeRecipient(); amount = creatorFees[poolId]; if (amount == 0) revert NothingToClaim(); creatorFees[poolId] = 0; poolManager.unlock( abi.encode(CallbackAction.WITHDRAW_FEES, abi.encode(m.reserveToken, m.feeRecipient, amount)) ); emit CreatorFeesClaimed(poolId, m.feeRecipient, m.reserveToken, amount); }
Who controls it: The hook developer can change the fee. The hook developer can also change: reserve, protocol config. The code never lets the fee go above 5%. Control can be passed on or given up. 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 auditconfigureReserveconfigureReservesetProtocolConfigsetProtocolConfigWhat 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 checks every deposit before it goes in.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
Across all its pools, the hook took its fee from a trade: $121.92.
- Took its fee from a trade 119 times, worth $121.92
Latest transactions
- 0x5ad0ccdb…f8659b block 26,479,085 · 0.000104 ETH
- 0x323950d5…484c56 block 26,479,085 · 0.000101 ETH
- 0xbe86afc8…39a13d block 26,479,085 · 0.000118 ETH
- 0x8ebfedcc…a90595 block 26,479,085 · 0.000125 ETH
- 0x6ca7d8a2…2f84a6 block 26,479,085 · 0.000111 ETH
- 0x50f3ca48…7148e3 block 26,474,841 · 0.0000806 ETH
- 0x826abf0b…878592 block 26,472,951 · 0.00000340 ETH
- 0x2424a302…30f183 block 26,470,655 · 0.0000677 ETH
- 0x9d6410a0…25d327 block 26,470,344 · 0.000174 ETH
- 0xe82028a1…d9524d block 26,469,212 · 0.0000979 ETH
- Launched the market 1 time
- Graduated a market 1 time
- Burned tokens 1 time
Latest transactions
- 0x089b471d…249ea7 block 26,466,116 · 1.60e-14 LEVETH
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. Dollar values count the amounts paid in ETH, stablecoins, BNB and BTC, at today’s prices.