This project implements an Autotask for OpenZeppelin Defender that rewards the PoolTogether V3 prize strategies automatically.
- Copy
.envrc.example
to.envrc
- Update
.envrc
with the appropriate variables - Run
direnv allow
. See direnv - Run
yarn update
to update the autotasks.
First build the project:
$ 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.
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