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

# Daiya Vault

The Daiya vault serves multiple purposes:

* It is a treasury that safeguards protocol revenue into a vault.
* It is also a revenue-sharing engine, that distributes $Daiya rewards based on mint fees (from minting Suidaiya's) and Suidaiya trading royalties (from marketplaces).

### Earning $Sui by staking $Daiya

In order to be able to earn a share of these fees, you will need to actively stake tokens, either by staking [$Daiya Token](/suidaiya/protocol/usddaiya-token.md) or [Locked $Daiya](/suidaiya/protocol/locked-usddaiya.md). As long as you are actively staking, you will be able to earn rewards in Sui.

{% hint style="info" %}
Pre-IDO $Daiya tokens are called Locked Daiya, and will not be transferable yet. \
After IDO these locked $Daiya tokens will be transferable again.

\
Do note that this changes nothing about the staking results, staking either $Locked Daiya or $Daiya will both make you eligible to earn $Sui according to your share.
{% endhint %}

* You will be eligible to claim Sui rewards whenever $Sui is injected into the vault.
* You will receive $Sui rewards in a pro-rate fashion according to your staking ratio of $daiya tokens. For example, if user A and user B both stake 100 $Daiya into the vault, and 50 $Sui rewards are claimable from protocol revenues, then both user A and B will share 25 $Sui from the vault as rewards.
* Whenever you are changing your position by either staking or unstaking $daiya, the vault contract will automatically help you to claim any outstanding rewards.

### Unstaking $Daiya

At all time can you decide to unstake your active $Daiya tokens from the vault. You can decide to withdraw a part or the full amount of you active staking position, but you will need to wait until the **14-day cooldown** period is over. After this period, you will also need to claim back your unstaked tokens.

{% hint style="info" %}
In order to unstake, there is a 14-days cooldown period that needs to be completed, before these tokens are unstaked.
{% endhint %}
