# Protocol Overview

<figure><img src="/files/G8tOf9VLN5FHCEZjYroE" alt=""><figcaption></figcaption></figure>

While the ability to customize pools offers exciting opportunities for users creating them, it also raises concerns regarding security. How can we ensure that custom pools are safe for users, and how can we prevent potential exploitation by malicious actors?

**Henjin v4** provides a comprehensive solution to this challenge, enabling customized pools while maintaining audited security measures.

### **Highly Customizable Features** <a href="#id-6a7a" id="id-6a7a"></a>

Henjin v4 offers an array of customizable options, empowering tailored pools to meet users’ demands. These modular components can also be referred to as hooks, akin to the recent Uni V4 update.

Anyone can select and integrate the modules that best align with their specific requirements, allowing for a customised and secure trading experience. Some notable customization options include:

* ***Dynamic Fees:*** Pool commission rates can be modified as desired, providing flexibility in adapting to market conditions & user preferences. [Read more about dynamic fees](/henjinai-protocol/amm-v4/dynamic-fees.md).
* ***Built-in Farming:*** Algebra 2.0 facilitates both limited and unlimited-time farming options, enabling decentralized exchanges to design unique farming programs that incentivize liquidity providers and attract more users. [Read more about farming](broken://pages/3pxujNrAkbvfkpRQZBRB).

### AMM (v4)

Henjin v4 formula with concentrated liquidity, dynamic fees and a range of v4 compatible hooks.

{% content-ref url="/pages/YcJvfKN5Nho9Nn9Sm2IL" %}
[AMM (v4)](/henjinai-protocol/amm-v4.md)
{% endcontent-ref %}

{% content-ref url="/pages/6dhdp3NNqf1l8k2hfhp7" %}
[Dynamic fees](/henjinai-protocol/amm-v4/dynamic-fees.md)
{% endcontent-ref %}

{% content-ref url="/pages/9pJF8x7DtuhbuGgoyQ8r" %}
[Swap](/henjinai-protocol/amm-v4/swap.md)
{% endcontent-ref %}

{% content-ref url="/pages/hhxfQIrN3G9EBfm1HmlZ" %}
[Provide Liquidity](/henjinai-protocol/amm-v4/provide-liquidity.md)
{% endcontent-ref %}

### Hooks (v4)

Henjin v4 hooks are external contracts that execute specific actions at certain points during the execution of a liquidity pool. These hooks enable developers to introduce added features and functionalities to liquidity pools in Henjin v4.

{% content-ref url="/pages/qPJ8SmQLQi90azJRxUin" %}
[Hooks (v4)](/henjinai-protocol/hooks-v4.md)
{% endcontent-ref %}

### Fair Launches

A transparent and equal opportunity for users to obtain tokens without having to worry about typical price fluctuations associated with the token listing.

{% content-ref url="/pages/SQVNg8Q389Rwm6FNarKL" %}
[Fair Launches](/henjinai-protocol/fair-launches.md)
{% endcontent-ref %}

### xHENAI Plugins

Contracts linked to the xHENAI contract. Some are native and directly made by the Henjin team (dividends, launchpads and more to come...).

{% content-ref url="/pages/KuFEKKdOsQGlh2aoZ3Go" %}
[xHENAI Plugins](/henjinai-protocol/xhenai-plugins.md)
{% endcontent-ref %}


---

# 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.henjin.xyz/henjinai-protocol/protocol-overview.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.
