# After Graduation Stage Trading

This guide covers coin trading after the graduation stage in Liquidity pools (DEX), executed through the Uniswap protocol.

## Uniswap Protocol (V3 / V4)

Coins created before December 5, 2025 are migrated to Uniswap V3 pools, while coins created on or after December 5, 2025 are migrated to Uniswap V4 pools. In both cases, post-graduation trading happens through the respective Uniswap protocol.

For swapping (trading) on Uniswap V3 protocol, kindly refer to [V3 swap documentation](https://docs.uniswap.org/contracts/v3/reference/periphery/interfaces/ISwapRouter#functions) for detail. For Uniswap V4, please refer to [V4 swap documentation](https://docs.uniswap.org/contracts/v4/quickstart/swap) for detail.

### Trade Referrer via Hook Data (Uniswap V4)

For coins traded on Uniswap V4 pools, Base.meme integrates with a custom hook contract. When executing swaps against these pools, integrators can encode a trader referrer address inside the Uniswap V4 `hookData` field. This address will be treated as the Trade Referrer for that trade, and the share of LP fees allocated to trade referrers (see the [Fee Structure](/fees-rewards/fee-structure.md)) will be assigned to this address through Base.meme's Reward Protocol.

The hook only treats `hookData` as a valid Trade Referrer when it contains exactly one ABI-encoded address (32 bytes). In practice, this means:

* To set a Trade Referrer, set `hookData` to the ABI encoding of the desired referrer address (one address, 32 bytes).
* If `hookData` is empty or its length is not 32 bytes, the Trade Referrer is considered unset and no trade referrer rewards are allocated for that swap.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.base.meme/for-developers/trading-coins/after-graduation-stage-trading.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
