Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamiew/ohmfork-autoclaim
automatically claim and restake vested bonds (mints) from SnowbankDAO, KlimaDAO, Wonderland, and other OlympusDAO forks
https://github.com/jamiew/ohmfork-autoclaim
avalanche avax blockchain ethereum evm hardhat klimadao ohm olympusdao snowbankdao solidity wonderland
Last synced: 5 days ago
JSON representation
automatically claim and restake vested bonds (mints) from SnowbankDAO, KlimaDAO, Wonderland, and other OlympusDAO forks
- Host: GitHub
- URL: https://github.com/jamiew/ohmfork-autoclaim
- Owner: jamiew
- Created: 2021-11-09T03:35:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-28T20:18:26.000Z (almost 3 years ago)
- Last Synced: 2024-11-02T01:32:18.371Z (12 days ago)
- Topics: avalanche, avax, blockchain, ethereum, evm, hardhat, klimadao, ohm, olympusdao, snowbankdao, solidity, wonderland
- Language: Solidity
- Homepage:
- Size: 139 KB
- Stars: 42
- Watchers: 4
- Forks: 18
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# greets
```sh❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈
❅ __ __ ❅
❊ .-----.-----.-----.--.--.--.----.| |.---.-.|__|.--------. ❊
❇ |__ --| | _ | | | | __|| || _ || || | ❇
❈ |_____|__|__|_____|________|____||__||___._||__||__|__|__| ❈
❅ ❅
❆ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆"ice to meet you"
```Simple scripts to claim and restake vested bonds from [OlympusDAO](https://www.olympusdao.finance) (OHM/sOHM) and its many forks
Originally written for [SnowbankDAO](https://dapp.snowbank.finance/#/mints), but now supports many other OlympusDAO forks, including [Wonderland](https://www.wonderland.money), [KlimaDAO](https://www.klimadao.finance) and probably more.
PRs and bug reports welcome
## Setup
```sh
yarn install
```Setup the `.env` file:
```sh
cp .env.sample .env
```Edit .env and put in your own values for:
- WALLET_ADDRESS – the wallet that actually owns the SB tokens and is earning the rewards
- PRIVATE_KEY - for a wallet that will execute the `bond()` call on the Snowbank contract. Make sure this wallet has some AVAX## Usage
To see a list of all the commands, run `yarn run`. Replace `snowbankdao` with `klimadao` or your supported fork of choice
Get some info about your bond (`bondInfo()`):
```sh
yarn snowbankdao:stats
yarn klimadao:stats
```Claim your rewards (`redeem()`):
```sh
yarn snowbankdao:redeem
yarn klimadao:stats
```To run that every 8 hours, you could use cron, systemd or just a lazy bash loop:
```sh
while [ true ]; do
yarn snowbankdao:redeem
sleep $((60*60*8))
done
```Or just run it manually, I don't care
## License
MIT
Pull requests & bug reports welcome
Please direct donations to the [Center For Artistic Activism](https://c4aa.org/) and [Electronic Frontier Foundation](https://www.eff.org/)
## Thanks
Shoutout to the OUE CREW for hot tips
Shoutout to [avalanche-smart-contract-quickstart](https://github.com/ava-labs/avalanche-smart-contract-quickstart), on which this repo is based
Shoutout to my kids, love y'all
Shoutout to you, for reading this
![Speed project approved: 1 hour](http://www.fffff.at/widgets/speed-project/images/time_60.png)