Overview and pool structure
Use the launch record and the official Hook to identify a graduated pool. A V4 pool is identified by a PoolKey and its hash, not a dedicated pair-contract address.
Contract responsibilities
LaunchFactory / graduation components
Move a ready launch through swept state and official pool creation
GraduationExecutor
Prepare the expected pool with the Hook, initialize it and mint the graduation position
PoolManager
Store pool state, execute swaps and settle token deltas
MemeHook
Validate official initialization; collect and allocate swap fees
PositionManager / LaunchLocker
Represent and permanently hold the protocol's graduation position
FeeEscrow
Hold credited recipient and Partner balances for withdrawal
BuybackVault
Hold bought-back tokens under the vesting schedule
The permanently locked position is the protocol's graduation position. Disabled liquidity callbacks in MemeHook do not prohibit third parties from adding their own liquidity or withdrawing their own positions. Do not describe every possible position in the pool as permanently locked.
Production contracts
Use the Mainnet Hook, PoolManager, PositionManager and Permit2 in Contract Address. Resolve the project's pool from that Hook on chain 5042.
Construct the PoolKey
currency0
Lower numerical address of launch token and quote token
currency1
Higher numerical address
fee
0
tickSpacing
Read the pool's configuration; production launch configuration uses 200
hooks
Official MemeHook address
poolId = keccak256(abi.encode(currency0, currency1, fee, tickSpacing, hooks)). Use ABI encoding, not packed encoding. Sort addresses numerically rather than by their checksum case. Read the per-pool quote token; do not assume every launch uses USDC.
Use the complete, maintained v4-hooks.ts helper in Trading integration. After saving that file, read and verify a pool with:
This example checks the chain, reads all pool metadata at one block, requires Hook status Active, rebuilds the key and verifies its hash against poolForToken. expectedSqrtPriceX96 is an initialization check value, not the live pool price.
When is the pool usable?
Before pool creation, refresh the Factory graduation state. A Hook pool may be prepared during initialization before it becomes active. For trading, require the completed graduation state and active Hook pool. For Aggregator trading, also obtain a successful current route. See Graduation and Trading integration.
Last updated
Was this helpful?