Giter Site home page Giter Site logo

pha_distribution's Introduction

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.

pha_distribution's People

Contributors

marvin-cypher avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.