Apogee
EthereumApogee is a Uniswap v4 hook on Ethereum. Live for 2 days. Still in use: 35 trades in the last week, and 1 new pool this week.
- Contract name
- Apogee
How this hook works
Liquidity managerA liquidity manager hook. It sets its own trading fee, manages its own liquidity and trades on its own.
Sets its own trading fee
Instead of a fixed fee chosen by the pool creator, it decides the fee itself on each trade. The fee goes to liquidity providers; the hook keeps nothing for itself.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata key, SwapParams calldata p, bytes calldata) external view onlyPM returns (bytes4, BeforeSwapDelta, uint24) { Launch storage l = launches[Currency.unwrap(key.currency1)]; uint24 fee = l.fee; if (p.zeroForOne) { // buy: ETH in uint256 dt = block.timestamp - l.launchedAt; if (dt < l.taxWindow) fee += uint24((uint256(l.tax) * (l.taxWindow - dt)) / l.taxWindow); } return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, fee | LPFeeLibrary.OVERRIDE_FEE_FLAG); }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 (modify):function _modify(PoolKey memory key, int24 lo, int24 hi, int256 liq) internal returns (uint256 fee0, uint256 fee1) { (, BalanceDelta fees) = poolManager.modifyLiquidity(key, ModifyLiquidityParams(lo, hi, liq, bytes32(0)), ""); (fee0, fee1) = (uint256(int256(fees.amount0())), uint256(int256(fees.amount1()))); }Trades on its own
It makes trades itself, for example to convert the fees it collected.
The code that does this (devBuy):function _devBuy(PoolKey memory key, Launch storage l, address token, uint256 eth, address to) internal returns (uint256 out, uint256 spent) { // the price where the curve has sold exactly the cap: token1 out = L * (sOpen - s) / Q96 uint256 cap = (SUPPLY * maxDevBps) / 10_000; uint160 limit = TickMath.getSqrtPriceAtTick(l.tickOpen) - uint160(FullMath.mulDiv(cap, FixedPoint96.Q96, l.liqCurve)); BalanceDelta d = poolManager.swap(key, SwapParams(true, -int256(eth), limit), ""); spent = uint256(uint128(-d.amount0())); out = uint256(uint128(d.amount1())); poolManager.settle{value: spent}(); poolManager.take(Currency.wrap(token), to, out); if (eth > spent) _sendEth(to, eth - spent); }Rewards to claim
It keeps track of what people have earned, and they claim it themselves.
The code that does this (claimEth):function claimEth() external { uint256 a = claimableEth[msg.sender]; claimableEth[msg.sender] = 0; _sendEth(msg.sender, a); emit Claimed(msg.sender, address(0), a); }Liquidity can’t be added directly
Nobody can add liquidity to its pools through Uniswap directly. Liquidity only comes in through the hook’s own code.
Only the hook creates its pools
Nobody can create a pool with this hook directly. Pools are only created through the hook’s own code.
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 { _known(token); poolManager.unlock(abi.encode(Action.Collect, token, 0, address(0), 0)); }
Who controls it: The hook developer can change the wallets that receive its fees. The hook developer can also change: params. The hook developer can also call: pull. 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 auditsetParamsWhat it can do
Its code executes inside each trade in pools that use it.
Pools using it let the hook choose the swap fee instead of a fixed tier.
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
- Took its fee from a trade 1 time
- Pulled 1 time
- Launched a new token 1 time
- Took tokens from trades 1 time
Latest transactions
- 0x95f1d221…83d606 block 26,465,135 · 363.5k APOGEE
Settings changes: set the settings (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.