> For the complete documentation index, see [llms.txt](https://hiveswapdex.gitbook.io/hiveswap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hiveswapdex.gitbook.io/hiveswap/xhive-plug-in.md).

# xHIVE Plug-in

Plugins are contracts linked to the xHIVE contract. Some are native and directly made by the Hiveswap team (dividends, yield booster, and more to come...) but others can be freely integrated by anyone from the ecosystem.

Users can take advantage of plugins' unique benefits by allocating xHIVE to them by directly staking into the xHIVE contract.

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

There is a default 0.5% deallocation fee on all xHIVE plugins.

In other words, if you allocate 100 xHIVE to a plugin and later deallocate the whole amount, you will only get back 99.5 xHIVE.\
\
**Dividends:**

The majority of the protocol earnings are redistributed to users allocating xHIVE to the Dividends plugin.

This dividends distribution can be done in the form of one or more tokens, and happens continuously.

**Epochs:**

The distribution is based on a weekly epoch logic: every week, a fixed part of the owner-defined accumulated tokens is marked as to be distributed.

The same process is repeated every 7 days.

**Handling payouts:**

The distribution of those tokens is equally spread over the duration of the epoch, and allocated on a second-basis to every user with a xHIVE allocation on this Dividends plugin, proportionally to their share of the total allocation.

Dividends being distributed continuously, users don't need to wait for the end of the epoch to collect them.

**Deallocation:**

Deallocating xHIVE from this plugin is not subject to any condition, and can be done any time.

The deallocation fee is 0.5%.The deallocation fee is 0.5%.

**Yield boosts:**\
Through the YieldBooster plugin, every user can allocate its xHIVE to a staked position (spNFT) in order to earn additional yield.

The induced yield boost multiplier is different based on the staking position's wrapped LP, but will usually use the default x2 value.

**This value is calculated for every position from the following elements:**

* The position's LP amount
* The total staked LP amount across all positions and users
* The position's allocated xHIVE amount
* The total allocated xHIVE  across all of the positions with the same LP
* The LP max boost multiplier (can't exceed x2.5)

Formula for yield boosts:&#x20;

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

<br>


---

# 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 dynamically by asking a question.

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

```
GET https://hiveswapdex.gitbook.io/hiveswap/xhive-plug-in.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
