Architecture Components

The Matchain Delegate Staking system is built on a set of smart contracts that enable staking, reward distribution, and ownership management through NFTs. These contracts collectively manage how users delegate their MAT tokens to staking pools, how rewards are generated and distributed, and how staking pool ownership is controlled and transferred.

Reward distribution follows a dual model:

  • 50% of minted rewards are split equally among active pools.

  • The remaining 50% are distributed pro-rata based on the amount of MAT delegated to each pool.

The key architecture components are the following:

MAT Token Contract

Implements the ERC-20 standard for the MAT token, serving as the core asset for staking and reward distribution.

  • Key Roles:

    • Facilitates token transfers, staking, and rewards aggregation.

    • Manages interaction with staking pools.

    • Enables the PoolFactory to register and manage new pools.


PoolFactory Contract

Handles the creation of new staking pools by prospective pool owners.

  • Key Roles:

    • Allows users to create new pools by sending a required amount of MAT (1,000,000 MAT by default, configurable).

    • Registers newly created pools to be eligible for delegated staking and reward participation.


StakingPool Contracts

Smart contracts representing staking pools where users delegate MAT tokens.

  • Key Roles:

    • Accept MAT token stakes from external users.

    • Manage staking rewards and add earned rewards to users’ staked amounts.

    • Handle unbonding periods for unstaking (7 days).

    • Share a common codebase, utilizing an upgradable beacon proxy model.

    • Operate under decentralized ownership, managed via NFTs.


PoolOwnership Contract

NFT-based contract that represents and manages ownership of staking pools.

  • Key Roles:

    • Issues a unique NFT to represent ownership of each pool.

    • Enables transfer of pool ownership through NFT transfers.

    • Stores pool-specific metadata accessible via a URL.

Last updated