> 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-pro/core-features/uniswap-v4-hooks.md).

# 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](https://docs.peach.ag/documentation/arc/launchpad/launchpad-pro/core-features/uniswap-v4-hooks/overview-and-pool-structure): discover the official pool and its locked graduation liquidity.
* [Hook Behavior and Fees](https://docs.peach.ag/documentation/arc/launchpad/launchpad-pro/core-features/uniswap-v4-hooks/hook-behavior-and-fees): identify the fee asset and calculate Exact Input/Exact Output fees.
* [Trading Integration](https://docs.peach.ag/documentation/arc/launchpad/launchpad-pro/core-features/uniswap-v4-hooks/trading-integration): select the router, approve assets and enforce final amounts.
* [Partner and HookData](https://docs.peach.ag/documentation/arc/launchpad/launchpad-pro/core-features/uniswap-v4-hooks/partner-and-hookdata): encode optional Partner attribution.
* [Fee Settlement and State](https://docs.peach.ag/documentation/arc/launchpad/launchpad-pro/core-features/uniswap-v4-hooks/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](https://docs.peach.ag/documentation/arc/launchpad/launchpad-pro/core-features/fees-and-claims).

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](https://docs.peach.ag/documentation/arc/launchpad/launchpad-pro/core-features/graduation) for the transition and [Contract Address](https://docs.peach.ag/documentation/arc/launchpad/launchpad-pro/contract-address) for the deployment addresses.


---

# 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-pro/core-features/uniswap-v4-hooks.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.
