Skip to content

Script used to calculate the rewards of people that are RAI minter and LP at the same time

Notifications You must be signed in to change notification settings

reflexer-labs/uni-v2-lp-reward-script

Repository files navigation

Run

Add the following variables in a .env file

# Url of a subgraph
GEB_SUBGRAPH_URL=https://subgraph.reflexer.finance/subgraphs/name/reflexer-labs/rai
# Start of the campaign block
START_BLOCK=11923942
# End of the campaign block
END_BLOCK=11978942
# Total reward distributed over the campaign
REWARD_AMOUNT=10000
# Ethereum RPC
RPC_URL=https://mainnet.infura.io/v3/<KEY>
# Google BigQuery service account key
GOOGLE_APPLICATION_CREDENTIALS=...

Run:

npm run start

Output file: rewards.csv

Test

npm run test

About

Script used to calculate the rewards of people that are RAI minter and LP at the same time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •