> For the complete documentation index, see [llms.txt](https://docs.peach.ag/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.peach.ag/documentation/arc/launchpad/launchpad-classic/core-features/uniswap-v4-hooks/overview-and-pool-structure.md). Agents can also search and read this documentation through its [MCP server](https://docs.peach.ag/~gitbook/mcp).

# 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

| Contract                              | Responsibility                                                                          |
| ------------------------------------- | --------------------------------------------------------------------------------------- |
| 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](https://docs.peach.ag/documentation/arc/launchpad/launchpad-classic/contract-address). Resolve the project's pool from that Hook on chain `5042`.

#### Construct the PoolKey

| Field         | Value                                                                     |
| ------------- | ------------------------------------------------------------------------- |
| `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](https://docs.peach.ag/documentation/arc/launchpad/launchpad-classic/core-features/uniswap-v4-hooks/trading-integration). After saving that file, read and verify a pool with:

```ts
import { readV4Pool } from "./v4-hooks.js";
const { poolId, key, config, blockNumber } = await readV4Pool(publicClient, token);
```

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](https://docs.peach.ag/documentation/arc/launchpad/launchpad-classic/core-features/graduation) and [Trading integration](https://docs.peach.ag/documentation/arc/launchpad/launchpad-classic/core-features/uniswap-v4-hooks/trading-integration).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.peach.ag/documentation/arc/launchpad/launchpad-classic/core-features/uniswap-v4-hooks/overview-and-pool-structure.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
