Developers
DevelopersGuides
  • Introducing Bond
    • Introduction
    • Why we build Bond?
    • Roles In Bond Ecosystem
    • Decentralised Relations/Social Graph
    • Architecture
    • Bond Reward Model
      • Leech Principle
      • Barrel Principle
  • Main Concepts
    • Bond Profile
      • Identity
      • Relationships
      • Content
      • Creator Economy
    • Connection
      • Connection NFTs
    • Bond Social Graph
    • Centralities
      • In/Out Degree Centrality
      • Betweenness Centrality
      • Closeness Centrality
      • PageRank Centrality
    • Reward Models
    • Reward Contracts
    • Off-chain Oracles
    • Gasless Mode
    • Cross Chain Messaging and Pay Gas with Bond Token
  • Bond API
    • Introduction
    • API Urls
    • Getting started with GraphQL
    • Authentication
      • Login
      • Refresh JWT
    • Profile
      • Create Profile
      • SetProfileMetadata
    • Connect
      • Connect a profile
      • Disconnect
  • Smart Contracts
    • BondHub
    • MerkelDistributor
    • TokenDeployer
    • SingleStakePoolDeployer
    • LzTokenDeployer
    • LzSingleStakePoolDeployer
  • Bond SDK
    • Bond JS SDK
      • Authenticate
      • Create Profile
      • Connect
  • Bond Nodes
    • Hardware Requirements
    • Set up and Deploy
    • Node Config (TOML)
    • Secrets Config (TOML)
    • Role-Based Access Control (RBAC)
  • References
    • Deployed Contracts
    • Github
Powered by GitBook
On this page
  1. Main Concepts

Reward Contracts

The reward contracts are smart contracts responsible for managing and executing reward calculations. It is one of the core components of the Bond. Within the reward contract, rules and parameters for reward calculation and distribution methods are defined. Specifically, the Reward contract records all users who participate in the project and their contributions on the blockchain. It collects user data from multiple chains, including but not limited to transactions and providing liquidity, and then calculates each user's contribution value through algorithms, followed by distributing rewards according to the rules.

The reward contract defines multiple reward calculation rules and distribution methods, such as distributing rewards based on contribution values, or calculating rewards based on user activity records on different chains. Additionally, the Reward contract also supports custom parameters such as total rewards and reward cycles to better meet the project's needs. During the execution of reward calculations, the reward contract uses off-chain algorithms to calculate the user's contribution value, and submits the calculation result to the blockchain. Additionally, the reward contract compares the user's contribution value with the total reward pool to determine the amount of rewards each user can receive. Once the reward contract has calculated the reward amounts for each user, it will distribute the reward tokens to their respective wallet addresses. This process is automated and requires no human intervention.

The Reward contract is a crucial component of Bond as it manages and executes reward calculations, ensuring fairness and accuracy in reward distribution. By using the Reward contract, project teams can easily create and manage reward calculation projects, providing users with better reward schemes.

PreviousReward ModelsNextOff-chain Oracles

Last updated 1 year ago