Generate snapshot for distributing Vesper rewards to staker of VSP-ETH LP token in Sushi Onsen.
- Install
npm i
- Set required environment variables using
export
or.env
export NODE_URL="eth_mainnet_url"
export MNEMONIC="mnemonic"
Check and update (if required) default values in .env.defaults
- Calculate onsen rewards data file using command line args.
Command Syntax
node index.js -s <rewardsStartBlock> -e <rewardsEndBlock>
Raise Pull request to verify generated data file. Once PR is verified, approved and merged, call create-claim
operation.
- Create claim using generated data file.
Command Syntax
node create-claim.js -f <datasetUrl>
Create claim using fork for local testing.
- Create fork
npm run fork
- Run below command on another terminal to create a claim.
The
swap-eth-to-erc20.js
will swap some VSP to first account of configuredmnemonic
.
export NODE_URL="http://localhost:8545"
node test/swap-eth-to-erc20.js
node create-claim.js -f <datasetUrl>
- Clone
pure.finance
repo and run below command on another terminal. Openhttp://localhost:3000/merkle-claims
and Merkle Claims for generated claim id.
npm install
npx lerna run --stream dev