Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pooltogether/defender-autotask-prize-strategy-upkeep
https://github.com/pooltogether/defender-autotask-prize-strategy-upkeep
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pooltogether/defender-autotask-prize-strategy-upkeep
- Owner: pooltogether
- Created: 2021-04-28T20:38:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-04T20:37:50.000Z (almost 3 years ago)
- Last Synced: 2024-04-23T21:42:34.846Z (9 months ago)
- Language: JavaScript
- Size: 498 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PoolTogether V3 Prize Strategy Upkeep Defender Autotask
This project implements an Autotask for [OpenZeppelin Defender](https://defender.openzeppelin.com/) that rewards the PoolTogether V3 prize strategies automatically using the [Upkeep contracts](https://github.com/pooltogether/pooltogether-prizepool-upkeep).
# 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` or `ropsten`