MilkyWay Docs
  • INTRODUCTION
    • Welcome to MilkyWay
    • Mission and Vision
    • MILK
      • Staking
        • Quick Start
      • Governance
        • Quick Start
      • Network Parameters
        • Chain Registry
      • Tokenomics
  • User Guides
    • For Liquid Stakers
      • Celestia (milkTIA)
        • Quick Start
        • Using third party apps
          • Camelot
          • Demex
          • Dymension
          • Levana
          • Margined
          • Mars
          • Osmosis
          • UX
      • Initia (milkINIT)
        • Quick Start
        • Using third party apps
      • Babylon (milkBABY)
        • Quick Start
        • Using third party apps
    • For Restakers
      • Quick Start
      • Creating a wallet
      • Restaking your assets
    • Bridging
      • Hyperlane
      • IBC Eureka
  • Infrastructure Operators
    • For Validators
      • Quick Start
      • Consesus node
      • Validator node
  • For Operators
    • Quick Start
    • Operator Management
    • Opt-in and Opt-out Services
  • For Developers
    • Quick Start
    • Service Management
    • Inviting Operators to Join Your Service
    • Creating Rewards Distribution Plan
  • Architecture
    • Modular Liquid Staking
      • Overview
      • Liquid Staking 101
      • Celestia (milkTIA)
        • Technical Architecture
          • Liquid Staking Process
          • Withdrawal Process
          • Exchange Rate
          • Compound Staking Rewards
          • Claim Process
          • Limits and Restrictions
        • Integrating with milkTIA
          • Contract Specifications
          • APIs specification
      • Initia (milkINIT)
        • Technical Architecture
          • Liquid Staking Process
          • Withdrawal Process
          • Exchange Rate
          • Compound Staking Rewards
          • Claim Process
          • Limits and Restrictions
        • Integrating with milkINIT
          • Liquid staking module specifications
          • Chains specifications
      • Bablyon (milkBABY)
        • Technical Architecture
          • Liquid Staking Process
          • Withdrawal Process
          • Exchange Rate
          • Compound Staking Rewards
          • Claim Process
          • Limits and Restrictions
        • Integrating with milkBABY
          • Liquid staking module specifications
          • Chains specifications
    • Modular Restaking
      • Overview
        • Technical Architecture
        • Design Philosophy
        • Programmable Rules
        • Economic Model
        • Use Cases
      • Restaking 101
      • Modules
        • x/assets
        • x/ibc-hooks
        • x/liquidvesting
        • x/operators
        • x/pools
        • x/restaking
        • x/rewards
        • x/services
        • x/tokenfactory
  • SECURITY
    • Audits
    • Bug Bounty Program
  • APPENDIX
    • Official Links
    • Frequently Asked Questions
    • Glossary
    • Branding Resources
    • Whitepaper (PDF)
Powered by GitBook
On this page
  1. For Developers

Creating Rewards Distribution Plan

When you are ready to distribute rewards to operators running your service and users providing you cryptoeconomic security, you can create a rewards distribution plan by running the following command:

milkywayd tx rewards create-rewards-plan [/path/to/plan.json]

Where:

  • [/path/to/plan.json] is the path to the JSON file containing the plan details.

Plan file

The plan.json file should contain the information about how to distribute rewards to operators and users. Its structure should be similar to the following:

{
  "service_id": 1,
  "description": "Test plan",
  "amount_per_day": "1000umilk",
  "start_time": "2024-01-01T00:00:00Z",
  "end_time": "2024-12-31T23:59:59Z",
  "pools_distribution": {
      "weight": 1,
      "type": {
          "@type":"/milkyway.rewards.v1.DistributionTypeBasic"
      }
  },
  "operators_distribution": {
      "weight": 1,
      "type": {
          "@type": "/milkyway.rewards.v1.DistributionTypeBasic"
      }
  },
  "users_distribution": {
      "weight": 1,
      "type": {
          "@type": "/milkyway.rewards.v1.UsersDistributionTypeBasic"
      }
  }
}

In order to enable most use cases as possible, our rewards module provides great flexibility when creating a rewards plan. For this reason, it's impossible for us to report here all the different structures to cover all possible cases.

If you want help in creating a rewards plan, do not hesitate in reaching out to our team. We will gladly help you with that.

PreviousInviting Operators to Join Your ServiceNextModular Liquid Staking

Last updated 6 months ago