# Programmable Hooks

### What is Soliquid Hook?

Re-engineered from Uniswap v4, Soliquid programmable hooks are external smart contracts that developers attach to individual liquidity pools, acting like plugins to customize and extend the pool's behavior without forking or modifying the core token properties. They run custom logic at specific points in a **pool's lifecycle** (initialization, liquidity modifications, swaps, and donations), enabling highly flexible, programmable Automated Market Makers (AMMs).

<table><thead><tr><th width="225.046875"></th><th></th></tr></thead><tbody><tr><td><strong>Scope</strong></td><td>Attached to specific liquidity pools on Soliquid. They are pool-level plugins.</td></tr><tr><td><strong>How they work</strong></td><td>Hooks are separate smart contracts called by Soliquid's Pool Manager at predefined points in the pool lifecycle (before/after). They can modify or extend behavior for an existing token.</td></tr><tr><td><strong>Common uses</strong></td><td><a href="#latest-hook-use-cases">See below</a></td></tr><tr><td><strong>Key traits</strong></td><td>Highly flexible for DeFi pool customization. Can run at multiple points (initialize, add/remove liquidity, swaps).</td></tr></tbody></table>

#### Key Differences vs Solana Transfer Hooks (Token Extensions / Token-2022)

Solana Transfer Hooks are tied to **individual token mints**. They trigger on every transfer of tokens from that mint. When you create a mint with the Transfer Hook extension enabled (part of Token Extensions), the Token Extensions program does a Cross-Program Invocation (CPI) to your custom transfer hook program on **every transfer**.

Common uses are whitelists, KYC checks, or to collect custom fees/royalties on transfers. It is automatic and unavoidable for that token (if the transfer uses the proper checked instructions), affecting the token everywhere it's used (wallets, DEXes, etc., which must support the extension).

<table><thead><tr><th width="225.046875">Aspect</th><th>Soliquid Programmable Hooks</th><th>Solana Transfer Hooks</th></tr></thead><tbody><tr><td><strong>Trigger</strong></td><td>Every token transfer (mint-level)</td><td>Specific pool actions (before/after)</td></tr><tr><td><strong>Level</strong></td><td>Token/asset level</td><td>Liquidity pool / DEX feature level</td></tr><tr><td><strong>Purpose</strong></td><td>Token behavior &#x26; compliance</td><td>Custom AMM/pool mechanics &#x26; strategies</td></tr><tr><td><strong>Universality</strong></td><td>Applies to all transfers of the token</td><td>Per-pool (one hook per pool)</td></tr></tbody></table>

***

### Latest Hook Use Cases

Since Q2 2026, there has been an on-chain renaissance in crypto narratives driven by hook innovation, which first emerged within the EVM ecosystem. Since then, the Binance and OKX wallets have introduced a new trading category, “Hook Summer,” reflecting strong market interest in hook tokens for the next bull run.

<details>

<summary>Hybrid / Experimental DeFi</summary>

* Custom AMM curves and returnDelta logic
* Lending-style hooks (FloodHook on EVM example)
* Time-based vesting / release schedules during swaps
* Fee splitting with multiple buckets (team, burn, protocol)

</details>

<details>

<summary>Meme Coins &#x26; Speculative Trading</summary>

* Simple tax hooks (5–10% buy/sell fees, sometimes doubled on specific conditions)
* Reflection / redistribution mechanics
* "Cursed" state-passing tokens (buy tags you, sell applies higher tax)

</details>

<details>

<summary>On-Chain Mining &#x26; Yield</summary>

* Custom bonding curves or issuance logic that mimics mining (e.g., increasing cost/difficulty).
* Rewards tied to swaps, liquidity adds, or holding.
* Often deflationary, self-sustaining, or narrative-driven (no team allocation, fair launch style).
* Blends DeFi primitives with meme/GameFi virality

</details>

<details>

<summary>NFT &#x26; Collectibles</summary>

* On-swap NFT generation or asset issuance (e.g. $uPEG)
* DN404 + Position NFT hooks (e.g. Converge series): Each whole token = one position NFT; taxes feed into vault with checkpoint mechanics for yield/position tracking.
* Soulbound / restricted transfer experiments combined with hooks

</details>

<details>

<summary>GameFi / Narrative-Driven Mechanics</summary>

* OnePlant / uniPlants (UP): NFT + token, dynamic fees, time-based release, burning, and team splits.
* Liquidation / "corpse" / RIP-style gameplay (e.g. UniPerps, cursed mechanics)
* "Raise / expire" corpse mechanics on buys/swaps
* Progression or state-changing systems

</details>

<details>

<summary>SocialFi / Community / Meme Culture</summary>

* Permissioned or story-driven mechanics that create community engagement or FOMO (e.g., whitelist gating, curse passing)
* Meme token launches leveraging hook novelty for virality

</details>


---

# 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://soliquid.gitbook.io/soliquid-docs/documentation/soliquid-hmm/programmable-hooks.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.
