# xnASTR

To achieve the mentioned goals, a rewards-bearing architecture has been chosen with xnASTR as a liquid token. The "x" in xnASTR denotes its cross-chain nature due to its XC20 format.&#x20;

This mechanism eliminates the need for manual claiming of staking rewards; instead, they accumulate on the liquid staking contract, and the xnASTR/ASTR ratio steadily increases over time.&#x20;

The xnASTR price is determined by the following equation:&#x20;

<figure><img src="https://593874052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrkY8PCzzyHqe2iNEHfd%2Fuploads%2FnngmnIBbqCVnQgu8G9zt%2FxnAstr.png?alt=media&#x26;token=33b70cba-1841-4bf3-a8dd-97c93077467a" alt="" width="319"><figcaption></figcaption></figure>

**stakedASTR**: the whole number of ASTR staked;&#x20;

**rewardPool**: a pool where all staking rewards are accumulated. Additionally, it is used as the fund for the immediate unstaking function.&#x20;

**xnastrTotalBalance**: the whole number of xnASTR minted.

### Staking and xnASTR minting&#x20;

A user stakes their ASTR through the liquid staking form and receives liquid xnASTR tokens back. The number of xnASTR tokens to receive is determined by the following equation:

<figure><img src="https://593874052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrkY8PCzzyHqe2iNEHfd%2Fuploads%2Fu26hMROEWudRBvJg0NnB%2Fminting.png?alt=media&#x26;token=e71675d8-efe1-4b65-b36c-45555aee8066" alt="" width="226"><figcaption></figcaption></figure>

### Unstaking&#x20;

A user unstakes their ASTR through the liquid unstaking form. The number of ASTR tokens to receive is determined by the following equation:

<figure><img src="https://593874052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrkY8PCzzyHqe2iNEHfd%2Fuploads%2F73ypkRZpPO0pkuPXCYL8%2Funstaking.png?alt=media&#x26;token=5805887e-5b2a-4cff-baf8-f504e9f037fc" alt="" width="369"><figcaption></figcaption></figure>
