https://github.com/bunsdev/uni-v3-incentive-reward-script
Uni v3 LP + mint rewards script
https://github.com/bunsdev/uni-v3-incentive-reward-script
Last synced: 6 months ago
JSON representation
Uni v3 LP + mint rewards script
- Host: GitHub
- URL: https://github.com/bunsdev/uni-v3-incentive-reward-script
- Owner: BunsDev
- Created: 2021-08-25T00:31:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-24T09:09:32.000Z (almost 5 years ago)
- Last Synced: 2025-02-01T09:29:26.595Z (over 1 year ago)
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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
# Uniswap v3 subgraph supporting snapshots
UNISWAP_SUBGRAPH_URL=https://api.thegraph.com/subgraphs/name/benesjan/uniswap-v3-test
# Uniswap pool reward to target
UNISWAP_POOL_ADDRESS=0xcb0c5d9d92f4f2f80cce7aa271a1e148c226e19d
# Start of the campaign block
START_BLOCK=11923942
# End of the campaign block
END_BLOCK=11978942
# Total reward distributed over the campaign
REWARD_AMOUNT=100
# Ethereum RPC
RPC_URL=https://mainnet.infura.io/v3/
# Google BigQuery service account key
GOOGLE_APPLICATION_CREDENTIALS=...
```
Run:
```
npm run start
```
Output file: `rewards.csv`
## Test
```
npm run test
```