# Real Yield Staking

The majority of the [protocol earnings](https://docs.camelot.exchange/tokenomics/protocol-earnings) 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="../../get-started/castle-tutorials/utilize-xgrail/earn-real-yield" %}
[earn-real-yield](https://docs.camelot.exchange/get-started/castle-tutorials/utilize-xgrail/earn-real-yield)
{% endcontent-ref %}

### UI element descriptions

<figure><img src="https://3420642431-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHBFQDThxW7Uo7iHfOHG5%2Fuploads%2FZ8kV2XiD5BsjPG6G3ef3%2FDividends.png?alt=media&#x26;token=9b6c487d-c002-441f-9f25-fef294c3e616" alt=""><figcaption></figcaption></figure>
