StabilizationPoolHook
EthereumStabilizationPoolHook is a Uniswap v4 hook on Ethereum. Live for 2 days. Still in use: 1 trade in the last week, and 1 new pool this week.
- Contract name
- StabilizationPoolHook
How this hook works
Smart feesA smart fees hook. It sets its own trading fee, keeps a price record and controls who adds or removes liquidity.
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 params, bytes calldata) external onlyPoolManager(key) returns (bytes4, BeforeSwapDelta, uint24) { _writeObservation(); bool sellingArgon = params.zeroForOne == (argonToken == token0); uint24 fee = BUY_FEE; if (sellingArgon) { fee = sellFee(); } return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, fee | LPFeeLibrary.OVERRIDE_FEE_FLAG); }Keeps a price record
It records the pool’s price over time, so other apps can read a fair average price.
The code that does this (afterInitialize):function afterInitialize(address, PoolKey calldata key, uint160, int24) external onlyPoolManager(key) returns (bytes4) { if (observationCardinality != 0) revert AlreadyInitialized(); (observationCardinality,) = observations.initialize(uint32(block.timestamp)); return IHooks.afterInitialize.selector; }Rules for adding or removing liquidity
It decides who can add or remove liquidity, or when.
The code that does this (beforeAddLiquidity):function beforeAddLiquidity(address, PoolKey calldata key, ModifyLiquidityParams calldata, bytes calldata) external onlyPoolManager(key) returns (bytes4) { _writeObservation(); return IHooks.beforeAddLiquidity.selector; }
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 auditWhat 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 runs before liquidity is removed, so it can delay or refuse LP exits.
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
Nothing recorded yet.
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.