Giter Site home page Giter Site logo

pyth-airdrop-random's Introduction

Pyth Airdrop Randomization Process

Event Rule

  • A random snapshot will be taken from February 21st to February 27th.
  • The top 3 winners will receive 4,888, 2,888, and 888 $PYTH, respectively, and will be selected randomly.
  • Additionally, 1,497 users will be randomly chosen from all users included in the snapshot. The remaining $PYTH amount will be distributed equally among these users.

Randomization Logic

After taking a snapshot at a random time and compiling a list of eligible users, we will select 1,500 random users to receive the Pyth airdrop. Here is the process for selecting the 1,500 random users:

  1. Retrieve the complete list of eligible users.
  2. Select a future drand round to use as the seed for hashing the list.
  3. When the chosen drand round occurs, use that round's Drand result as the source of randomness.
  4. Combine each user's Sui address with the randomness in the format {address}{randomness}, and then hash this combination using the Blake2b algorithm, producing a hash result in hexadecimal form.
  5. Convert the hexadecimal hash result into a number.
  6. Sort these numbers from largest to smallest and pick the top 1,500 users from the sorted results as winners of the Pyth airdrop.

pyth-airdrop-random's People

Contributors

nicetomeetyou1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

onesah

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.