# Integrating Fixed-Rate Staking

### Why Integrate Fixed Staking from FIVA

FIVA offers a groundbreaking solution for platforms looking to provide their users with stable, predictable returns on their TON and USD assets. This integration brings multiple advantages to your platform:

#### Superior Yields with Certainty

FIVA consistently delivers some of the highest fixed rates in the TON ecosystem by aggregating yields from leading protocols like Ethena, Storm, EVAA, and Tonstakers. Our rates also factor in future protocol rewards and point values, giving your users access to enhanced returns that aren't available through direct staking.

For example, while direct staking might yield 5-15% with significant volatility, FIVA's fixed rates can provide comparable or better returns with complete certainty.

#### Revenue Sharing Opportunity

Platforms integrating FIVA's fixed staking solution receive 5 basis points (0.05%) of all volume generated through their integration.&#x20;

#### How Fixed Staking Works for Users

Users who stake through your platform will receive a guaranteed yield if they hold until maturity (the expiration date of their fixed-rate position). This works similar to traditional bank term deposits, providing familiarity for users new to DeFi.

If users need to exit before maturity, they maintain complete liquidity - they can unstake at any time. However, the actual return might differ from the initially offered rate, as it will be determined by current market conditions. This flexibility combines the best of traditional finance (guaranteed returns) with DeFi benefits (maintained liquidity).

#### Security and Reliability

Our fixed staking solution has undergone rigorous security validations:

* Comprehensive audits by Trail of Bits and TonBit
* Six months of thorough testnet operations
* Implementation of industry best practices
* Developed by a team with extensive experience in both DeFi and traditional finance

### How to Integrate Fixed Staking

#### SDK Implementation

We've developed a streamlined SDK that makes integration straightforward. Your platform needs to implement three primary functions:

1. **Stake (Fixed Yield)** - Allows users to lock in current rates and create a fixed-yield position
2. **Unstake Before Maturity** - Enables users to exit positions early at current market rates
3. **Unstake After Maturity** - Lets users redeem their position once maturity is reached

These functions integrate directly with FIVA's PT (Principal Token) system, though for user-facing interfaces, we recommend using terms like "Fixed Staking" for better user understanding.

#### API Integration for Rate Data

Your platform will need to display current fixed rates, maturity, and liquidity information. All this data is accessible through our comprehensive API. Key endpoints include:

* Current fixed APY rates for each asset
* Available liquidity information
* Maturity dates

### Complete Integration Workflow

The integration process follows these steps:

1. Implement the SDK functions for stake, unstake before maturity, and unstake after maturity
2. Connect to our API to display relevant fixed-rate information to users
3. Create user-friendly interfaces for the fixed staking process
4. Check the integration in testnet
5. Launch the integration to your users

Our SDK handles all the complex interactions with FIVA's smart contracts, making the integration process straightforward for your development team.

### Next Steps

In the following chapters, we provide detailed technical documentation for:

* SDK implementation specifics
* API documentation

If you have any questions or need additional information, please contact <andrei.yazepchyk@thefiva.com> or ask in our [community in Telegram](https://t.me/fiva_community).


---

# Agent Instructions: 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://docs.thefiva.com/developers/integrating-fixed-rate-staking.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.
