Giter Site home page Giter Site logo

inj-rebate's Introduction

INJ Rebate

There are two parts.

  1. get_delegators
  2. validator-rebate.

get_delegators

You need to run this once just before the rebate starts (as a prior) and periodically during the rebate. (possibly once a day/week)

pick your own validator/API server, as some limit the responses pass in your API endpoint, and your validator address. as setup, it will only download the first 8000 delegators, if you have more.. adjust it.

validator-rebate

  1. build it. (if you need, I can supply binaries)
  2. run it.

ala cargo run -- whitelist.csv prior.json out results.csv the 1st argument are the whitelisted wallets. (the ones with the coupons, one per line) the 2nd argument is the list of delegations prior to the rebate program. (as the rebate only applies to new delegations) the 3rd argument is the directory that contains the results of the script, that you periodically ran. the 4th argument is the results file the program will write.

it will be in the format of:

delegate wallet, #tokens delegated (in aINJ), and %ge of reward pool they should be alloted.

inj-rebate's People

Contributors

pfc-developer avatar dependabot[bot] 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.