Uniswap V4 Hooks
Once a Pro token reaches PoolCreated and its Hook is active, it can trade in its official Uniswap V4 pool through a compatible router. MemeHookV2 applies post-graduation fees and records platform, Creator and Partner revenue.
The Hook uses a proxy. Use the proxy address in PoolKeys, contract calls and event subscriptions. The implementation can be upgraded under the deployment's administrative permissions.
Explore the integration
Overview and Pool Structure: discover the official pool and its locked graduation liquidity.
Hook Behavior and Fees: identify the fee asset and calculate Exact Input/Exact Output fees.
Trading Integration: select the router, approve assets and enforce final amounts.
Partner and HookData: encode optional Partner attribution.
Fee Settlement and State: convert accrued fees and settle Partner batches.
Trading and revenue
PoolManager invokes the Hook during a swap. Wallets submit trades to their selected router, which must support the Hook's fee adjustment. Official pool preparation and activation happen during pool creation; use active pool state to decide whether a swap is available.
Exact Input fees are charged in the output asset; Exact Output fees are charged in the input asset. Quote is the launch's ERC20 payment asset, and a fee can be Quote or launch tokens. Creator Tax is additional to the base Hook fee. Partner commission comes out of the platform's base-fee share.
Accrued revenue must be settled into FeeEscrow before it can be claimed. See the cost and revenue overview.
The protocol's graduation liquidity position and residual launch supply are permanently locked. That lock applies to the graduation position; independently added liquidity has its own ownership. See Graduation for the transition and Contract Address for the deployment addresses.
Last updated
Was this helpful?