> For the complete documentation index, see [llms.txt](https://safe-staker.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://safe-staker.gitbook.io/docs/features-and-configuration/token-staking-setup/token-staking-reward.md).

# /token-staking-reward

\[OPTIONAL] - Set reward for fungible token staking. By default, this command can be used by a server administrator only.

Use the command `/token-staking-reward` to customize the staking reward & the minimum amount of amount required to stake. &#x20;

<figure><img src="https://3098633618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSyR57ToGMWWsDPrREBU%2Fuploads%2FEMpVLMVg4Doo7nQw8LLO%2Fimage.png?alt=media&amp;token=8ea85293-233a-4465-9d10-f20a87f3d07e" alt=""><figcaption></figcaption></figure>

### Command Parameter 1 - `reward_amount`

> *By default, the staking reward is set to `10`.*
>
> **Minimum `reward_amount` you can set:** `10`&#x20;
>
> **Maximum `reward_amount` you can set:** `10,000,000`

### Command Parameter 2 - `minimum_staking_amount`

> *By default, the minimum staking amount is set to `100`.*
>
> **Minimum `minimum_staking_amount` you can set:** `1`&#x20;
>
> **Maximum `minimum_staking_amount` you can set:** `10,000,000`

<figure><img src="https://3098633618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSyR57ToGMWWsDPrREBU%2Fuploads%2F0kxmIY2KBZrpbnLsyFPY%2Fimage.png?alt=media&amp;token=0053e63b-2c93-4beb-aed2-670c2870927d" alt=""><figcaption></figcaption></figure>

## **Example Configuration**

Let's consider the following configuration settings:

* **Reward Amount**: 10 points
* **Minimum Staking Amount**: 200 tokens

With these settings, the reward calculation works as follows:

1. **Minimum Staking Requirement**:
   * A user must stake at least **200 tokens** to be eligible for any reward.
   * If a user stakes **200 tokens**, they will receive a reward of **10 points**.
2. **Proportional Rewards**:
   * If a user stakes more than the minimum staking amount, their reward increases proportionally.
   * For example, if a user stakes **300 tokens**, the reward is calculated based on the proportion of tokens staked relative to the minimum staking amount.&#x20;

**Detailed Calculation**

* **Minimum Staking Amount**: 200 tokens
* **Reward Amount for Minimum Staking**: 10 points

To calculate the reward for any staked amount, use the following formula:

<figure><img src="https://3098633618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSyR57ToGMWWsDPrREBU%2Fuploads%2FBjODq6rLvt6iRTgD91JD%2Fimage.png?alt=media&amp;token=9aba1b81-cb76-48dc-a2eb-48174934d789" alt=""><figcaption></figcaption></figure>

Let's apply this formula to the example:

<figure><img src="https://3098633618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSyR57ToGMWWsDPrREBU%2Fuploads%2F1NnmSgIFyFCB9kEvWNWk%2Fimage.png?alt=media&amp;token=a096feed-0c9d-4616-9ca1-856f016eb92d" alt=""><figcaption></figcaption></figure>

Therefore, if a user stakes **300 tokens**, they will receive a reward of **15 tokens**.

**Summary**

* To receive the reward, a user must stake at least the minimum staking amount.
* The reward increases proportionally with the amount staked above the minimum staking amount.

By understanding these key points, users can optimize their staking amounts to maximize their rewards based on the configured reward and minimum staking amounts.
