# Perform AI - Advanced Staking

<figure><img src="/files/JGlk92rlk0LmAiqTqJxs" alt=""><figcaption></figcaption></figure>

**Custom staking system with weighted rewards and block-based distribution**

We developed an advanced staking mechanism that allows token holders to connect their crypto wallet, stake tokens, and earn rewards through a structured distribution model.

The system was designed to create a fair and transparent reward structure while encouraging long-term participation in the ecosystem.

### Scope of work

| Smart Contract Development                                | dApp Development                                                                    |
| --------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| Architecture and development of staking smart contracts   | Web3 wallet connection integration. Metamask and other big wallet providers.        |
| Implementation of weighted reward calculation logic       | Staking dashboard interface (UI/UX)                                                 |
| Block-based reward distribution mechanism                 | Stake, unstake, and claim reward interactions                                       |
| Token emission and release schedule implementation        | Smart contract integration with frontend. Connecting the buttons with the contract. |
| Secure staking, withdrawal, and reward claiming functions | User-friendly staking experience. Best UX for inexperienced crypto users.           |

### Key Features

* **Wallet connection**: Users can connect their crypto wallet to the staking platform and interact with the staking contracts directly through a Web3 interface.
* **Token staking**: Participants can deposit tokens into the staking contract where they are securely locked for reward generation.
* **Weighted reward model**: Rewards are distributed based on a **weighted average**, taking into account factors such as:

  * Amount of tokens staked
  * Duration of the stake
  * Overall staking pool participation

  This ensures a fair reward allocation among all participants.
* **Block based rewards**: Instead of fixed periodic payouts, rewards are distributed **per blockchain block**, allowing for continuous reward accumulation.
* **Release schedule**: The reward emissions follow a **predefined release schedule**, ensuring predictable token distribution and preventing uncontrolled inflation.


---

# 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://coinsult.gitbook.io/coinsult/portfolio/perform-ai-advanced-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.
