MilkyWay Docs
  • INTRODUCTION
    • Welcome to MilkyWay
    • Mission and Vision
    • MILK
      • Tokenomics
    • Whitepaper (PDF)
  • User Guides
    • For Liquid Stakers
      • Quick Start
      • Liquid Staking 101
      • Celestia (milkTIA)
        • Using third party apps
          • Camelot
          • Demex
          • Dymension
          • Levana
          • Margined
          • Mars
          • Osmosis
          • UX
      • Initia (milkINIT)
      • Babylon (milkBABY)
        • User Flow
        • One-Click Stake
    • For Restakers
      • Quick Start
      • Restaking 101
      • Creating a wallet
      • Restaking your assets
      • For Restakers
    • Bridging
      • Hyperlane
      • IBC Eureka
  • Infrastructure Operators
    • For MilkyWay Validators
      • Quick Start
      • For Validators
        • Consesus node
        • Validator node
  • Architecture
    • Modular Liquid Staking
      • Overview
      • For 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
      • For 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
      • For 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
      • Modules
        • x/assets
        • x/ibc-hooks
        • x/liquidvesting
        • x/operators
        • x/pools
        • x/restaking
        • x/rewards
        • x/services
        • x/tokenfactory
      • For Service Operators
        • Quick Start
        • For Operators
          • Operator Management
          • Opt-in and Opt-out Services
      • For Service Developers
        • Quick Start
        • For Services Admins
          • Service Management
          • Inviting Operators to Join Your Service
          • Creating Rewards Distribution Plan
  • SECURITY
    • Audits
    • Bug Bounty Program
  • APPENDIX
    • Official Links
    • Frequently Asked Questions
    • Glossary
    • Branding Resources
Powered by GitBook
On this page
  1. Architecture
  2. Modular Restaking
  3. For Service Developers
  4. For Services Admins

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 ServiceNextAudits

Last updated 6 months ago