> For the complete documentation index, see [llms.txt](https://mooncatais-organization.gitbook.io/mooncatai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mooncatais-organization.gitbook.io/mooncatai/staking-mechanism/staking-rules.md).

# Staking Rules

### Staking Options Overview

MoonCat offers two staking tiers, each designed to cater to different investment strategies and time horizons:

#### 1. 7-Day Staking (Previously "Flexible Staking")

* Initial APR: 19.99% (1999 basis points)
* Maximum APR: 50% (5000 basis points)
* Unlock Period: 7 days notice required
* Suitable for users seeking shorter commitment periods

#### 2. 1-Year Staking

* Initial APR: \~35.00% (3500 basis points)
* Maximum APR: 99% (9900 basis points)
* Unlock Period: 365 days notice required
* Designed for long-term holders seeking higher yields

### Staking Limits and Restrictions

* Maximum Stake Amount: 1,000,000 tokens per address per staking option
* Minimum Stake Amount: Any amount greater than 0
* Users can participate in both staking options simultaneously

### Reward Mechanics

#### Interest Calculation

* Rewards are calculated continuously based on stake duration
* Interest compounds automatically when adding more tokens to an existing stake
* Rewards can be:
  1. Withdrawn separately using `withdrawAllInterest` at anytime including during the unlock period up untilt he stakle is available for unlock. This protects people int he 1 year pool who will continue to earn rewards.
  2. Automatically compounded when adding more tokens

#### Rate Adjustments

* Rates can be modified by governance with following restrictions:
  * 7-day maximum rate: 50% APR
  * 1-year maximum rate: 99% APR
  * Minimum 7-day cooling period between rate changes
  * Only governors can adjust rates

### Unlocking Mechanisms

#### Standard Unlock

1. Request unlock initiation
2. Wait for the respective unlock period (7 days or 1 year)
3. Withdraw funds after unlock period completion
4. Pending rewards are automatically compounded when requesting unlock

#### Force Unlock

* Available for both staking options
* Incurs a 50% penalty on the entire staked amount
* No waiting period required
* Penalty tokens are retained by the contract

#### Emergency Withdrawal

* Only available when emergency mode is activated by admin
* Incurs a 0% fee on withdrawn amount
* Bypasses standard unlock periods
* Available for both staking types simultaneously

### Safety Features

#### Pause Mechanism

* Contract can be paused by authorized pausers
* Prevents new stakes during maintenance or emergencies
* Protects users during unexpected issues

#### Emergency Mode

* Can be activated by admin in extreme situations
* Enables emergency withdrawals with 0 penalties
* Automatically pauses new staking operations

### Technical Safeguards

* Reentrancy protection on all critical functions
* Role-based access control for administrative functions
* Comprehensive event logging for transparency
* Time-locked rate changes to prevent manipulation

### Statistics Tracking

The contract maintains comprehensive statistics for each address including:

* Total amount staked
* Total rewards compounded
* Total rewards withdrawn
* Current pending rewards
* Detailed stake information (amount, lock status, timing)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mooncatais-organization.gitbook.io/mooncatai/staking-mechanism/staking-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
