https://github.com/pooltogether/defender-autotask-reward
https://github.com/pooltogether/defender-autotask-reward
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pooltogether/defender-autotask-reward
- Owner: pooltogether
- Created: 2020-09-21T15:52:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-07T20:33:38.000Z (over 4 years ago)
- Last Synced: 2025-06-09T09:40:25.777Z (12 months ago)
- Language: JavaScript
- Size: 1.23 MB
- Stars: 2
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PoolTogether V3 Reward Defender Autotask
This project implements an Autotask for [OpenZeppelin Defender](https://defender.openzeppelin.com/) that rewards the PoolTogether V3 prize strategies automatically.
# Setup
1. Copy `.envrc.example` to `.envrc`
2. Update `.envrc` with the appropriate variables
3. Run `direnv allow`. See [direnv](https://direnv.net)
4. Run `yarn update` to update the autotasks.
# Usage
First build the project:
```sh
$ yarn build
```
This will create:
- `dist/rinkeby-build.js`
- `dist/ropsten-build.js`
Copy the contents of those files into their respectives Autotasks in OpenZeppelin Defender.
# Running locally
You can use the CLI as well to test out the task:
```
$ yarn cli
```
There's a precooked command called `rinkeby` that uses env vars.
First setup the vars:
```
$ cp .envrc.example .envrc
```
Now allow direnv
```
$ direnv allow
```
Set the vars to what you need, then run:
```
$ yarn reward [network]
```
Where [network] is `rinkeby`, `ropsten` or `polygon`