# Uniswap V4 Hook

### Division of Hooks

Publiphi leverages **Uniswap v4 Hooks** as its technical foundation, built around two main components:

* **BoardHook** — manages fair launches, liquidity, and fees
* **PhiEthHook** — transforms ETH into creatorETH

***

#### 1. BoardHook — Fair Launch & Liquidity Provision

* **Fair Launch (beforeSwap Hook)**
  * 30-minute period with fixed pricing.
  * Participation can be restricted to PHI token holders or specific on-chain credential holders.
* **Liquidity Provision (afterInitialize Hook)**
  * At the end of Fair Launch, a **Uniswap v4 pool is instantly created**, enabling open trading.
* **Dynamic Fee Hook**
  * Fees adjust dynamically based on recent trading volume and transaction ordering.
  * Helps mitigate MEV risks and speculative overheating.

**Fee Distribution Example**

* **Buy (Board Token Purchase)**
  * Referral: 20%
  * Protocol (safe): 80%
* **Sell (Board Token → CreatorETH)**
  * Referral: 20%
  * Protocol ($PHI buyback): 40%
  * Inspired (Muse): 4%
  * Protocol (safe): 18%
  * Creator: 18%
* **Fair Launch Period**
  * Fixed 1% fee → 100% protocol

***

#### 2. PhiEthHook — Making ETH Productive

* **ETH → CreatorETH (e.g., AliceEth)**
  * All ETH used to purchase tokens is wrapped into custom yield-bearing ETH.
* **DeFi Integration**
  * Deposited automatically into Aave v3 or Morpho-Aave.
  * Yield is periodically streamed back to the creator.


---

# 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.phi.box/explore-phi/phi-board/uniswap-v4-hook.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.
