> ## Documentation Index
> Fetch the complete documentation index at: https://docs.n0ir.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Staking

> Stake $N0IR to earn rewards — directly from the dashboard.

Staking is built into the n0ir dashboard. There is no separate staking page — you stake, unstake, and claim rewards right from your main profile view.

***

## How It Works

The staking contract follows the **Synthetix reward distribution model**. The protocol owner funds reward epochs by depositing \$N0IR into the contract, which distributes them proportionally to all stakers over the epoch duration.

* **Reward rate** is calculated on-chain as `rewardAmount / epochDuration`
* **APR is dynamic** — it depends on the total amount staked and the current epoch's reward rate
* **Epochs last 30 days** by default (configurable by the contract owner)
* Rewards accrue every second and can be claimed at any time

<Info>
  APR fluctuates based on how much \$N0IR is staked. More stakers = lower individual APR. Fewer stakers = higher APR.
</Info>

***

## Staking Mechanics

### Stake

1. Enter the amount of \$N0IR you want to stake
2. Approve the staking contract to spend your tokens
3. Tokens are transferred to the on-chain staking contract on Base

### Unstake

Unstaking uses a **14-day cooldown** to prevent short-term farming:

1. **Request unstake** — your tokens enter the cooldown period
2. **Wait 14 days** — tokens remain locked during cooldown
3. **Complete unstake** — after cooldown, claim tokens back to your wallet

You can **cancel** an unstake request at any time during the cooldown to re-stake immediately.

### Claim Rewards

Earned rewards accumulate in real time. Click **Claim** to transfer accrued \$N0IR rewards to your wallet. There is no lock or delay on claiming.

***

## Dashboard View

The staking card on your dashboard shows:

| Field               | Description                                      |
| ------------------- | ------------------------------------------------ |
| **APR**             | Current dynamic annual percentage rate           |
| **Your Staked**     | Amount of \$N0IR you have staked                 |
| **Total Staked**    | Global amount staked across all users            |
| **Pending Unstake** | Amount in cooldown (if any), with available date |
| **Earned Rewards**  | Claimable \$N0IR rewards                         |

When no reward epoch is active, a banner indicates that staking is still available but no rewards are currently being distributed.

***

## Contract Details

* **Chain**: Base (chain ID 8453)
* **Model**: Synthetix `StakingRewards` pattern
* **Cooldown period**: 14 days
* **Epoch duration**: 30 days (default)
* **Non-custodial**: Tokens are held by the on-chain contract — not by n0ir

<Info>
  The staking contract is separate from the yield agent. Your staked \$N0IR stays on-chain in the staking contract. Your USDC vault positions are managed by the agent through your smart account.
</Info>
