Skip to content

Marvin-Cypher/pha_distribution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHA Distribution Graph

This project visualizes the PHA (Phala Network's token) distribution over time, following a specific halving schedule as part of the Gemeni Tokenomics for compute reward including both Phala and Khala tokens.

截屏2023-08-23 23 53 38

Features

  • A line graph that displays daily rewards based on a specific halving algorithm.
  • Interactive tooltip that shows the exact reward amount for a specific day upon hover.
  • Neat visual elements and design, with a focus on user experience.

Setup & Run

  1. Clone the repository:

    git clone <repository-url>
  2. Open the index.html file in your browser.

Dependencies

  • D3.js: For creating and manipulating the graph.

How It Works

The graph models the token distribution of PHA over a ten-year period. Every 180 days, the daily rewards decrease, representing a "halving" in the context of blockchain token distribution: https://docs.phala.network/compute-providers/basic-info/worker-rewards

Phala / Khala
Relaychain Polkadot/ Kusama
Budget for Mining 700 mln
Halving Period 180 days
Halving Discount 25%
Treasure Share 20%
First Month Reward 21.6 mln

The rewards and days are computed and then plotted using D3.js to provide a visual representation.

Contribution

Interested in contributing? Check out our CONTRIBUTING.md for guidelines.

License

This project is open source, under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published