https://github.com/kleros/t2cr-rewards-bot
Convenience bot that watches the T2CR for withdrawable rewards and withdraws for them user.
https://github.com/kleros/t2cr-rewards-bot
backend token-list
Last synced: 3 months ago
JSON representation
Convenience bot that watches the T2CR for withdrawable rewards and withdraws for them user.
- Host: GitHub
- URL: https://github.com/kleros/t2cr-rewards-bot
- Owner: kleros
- License: mit
- Created: 2019-06-10T16:15:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T23:50:11.000Z (over 3 years ago)
- Last Synced: 2023-02-26T18:16:22.710Z (over 3 years ago)
- Topics: backend, token-list
- Language: JavaScript
- Homepage:
- Size: 2.05 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Rewards Withdraw Bot
On the [Token² Curated List](tokens.kleros.io), users can contribute to dispute appeal fees to the side they believe is correct and get a chance to win rewards.
This bot is a convenience tool that withdraws those fee contributions and rewards to users so they don't have to do it themselves.
## Usage
The bot needs to query every round of the requests a user contributed to. As the TCRs grow, this could result in too many requests being sent to the node and result in rate limiting.
To avoid this we use local storage to not query blocks already checked.
To clear the cache, use `yarn clear`.