> For the complete documentation index, see [llms.txt](https://coinsult.gitbook.io/coinsult/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://coinsult.gitbook.io/coinsult/portfolio/perform-ai-advanced-staking.md).

# 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.
