# Staking TST and USDs

### Staking Options:

* Users can stake TST (The Standard Token) and/or USDs (The Standard's stablecoin).
* Each token type offers different reward structures.

### TST Staking:

* Rewards:&#x20;
  * TST stakers earn USDs fees generated from borrowing and repayment activities in Smart Vaults.
  * TST stakers also receive the full 1% fee of all collateral placed into yield earning pools across the entire protocol.&#x20;

Reward Calculation:&#x20;

`(User's Staked TST * Days Staked) / (Total TST Staked * Current Staking Period Length)`

### USDs Staking:

* Rewards: USDs stakers earn various assets, primarily generated from collateral placed into yield earning pools and collateral swaps executed within Smart Vaults.
* Additional Rewards: The protocol may occasionally airdrop other reward assets to the staking reward pool.

Reward Calculation:&#x20;

`(User's Staked USDs * Days Staked) / (Total USDs Staked * Current Staking Period Length)`

### Staking Process:

1: Users connect their wallet to the staking interface.

2: They choose the amount of TST and/or USDs to stake.

3: The staking period begins immediately upon successful staking transaction.

### Reward Accumulation:

* Rewards accrue in real-time based on the user's stake and the duration of staking.
* Users can view their projected rewards in the Staking dashboard at any time.

### Claiming Rewards:

* Users can claim their rewards through the Staking dashboard.
* When claiming, all non-USDs reward assets are transferred directly to the user's wallet.
* For USDs rewards, users have two options:&#x20;

a) Compound: USDs rewards are automatically added to the user's USDs stake.

&#x20;b) Withdraw: USDs are transferred to the user's wallet along with other reward assets.

### Stake Management:

#### Increasing Stake:

* All previously earned rewards are claimed.
* USDs rewards are automatically compounded (added to the stake).
* The staking period restarts.

#### Decreasing Stake:

* All previously earned rewards are claimed without compounding USDs rewards.
* The staking period restarts.

### Staking Period:

* The staking period restarts whenever a user claims rewards or adjusts their stake amount.
* This reset affects future reward calculations.

### No Token Burn:

No TST or USDs is burned or spent by users when earning rewards.

### Security:

The new Staking contract has been audited by independent security researcher MaslarovK.

All identified vulnerabilities, both low and high risk, have been resolved.
