> For the complete documentation index, see [llms.txt](https://docs.camelot.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.camelot.exchange/protocol/xgrail-plugins/real-yield-staking.md).

# Real Yield Staking

The majority of the [protocol earnings](/tokenomics/protocol-earnings.md) are redistributed to users who allocated xGRAIL to the real yield staking plugin.

Staking distribution can be done in the form of one or more tokens, and happens **continuously** (reward/second), through weekly epochs.

### 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.

### Payouts handling

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 xGRAIL allocation on this real yield staking plugin, proportionally to their share of the total allocation.

{% hint style="info" %}
In more simpler terms, if we go with the following values:

* a total of 10,000 xGRAIL allocated to the real yield staking plugin
* a daily distribution of 10,000 USDC

If a user has allocated 200 xGRAIL to the plugin, he owns 2% of the allocations and will consequently receive 2% of the daily rewards, ie 200 USDC.
{% endhint %}

{% hint style="warning" %}
Staking rewards are being distributed continuously, users don't need to wait for the end of the epoch to collect them.
{% endhint %}

### Deallocation

Deallocating xGRAIL from this plugin is subject to a 0.5% fee.

{% content-ref url="/pages/OzAQD68OLhXrq0DTowBW" %}
[Earn Real Yield](/get-started/castle-tutorials/utilize-xgrail/earn-real-yield.md)
{% endcontent-ref %}

### UI element descriptions

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


---

# 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://docs.camelot.exchange/protocol/xgrail-plugins/real-yield-staking.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.
