Git Product home page Git Product logo

ohmfork-autoclaim's Introduction

greets

 ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈
 ❅                                   __         __             ❅
 ❊ .-----.-----.-----.--.--.--.----.|  |.---.-.|__|.--------.  ❊
 ❇ |__ --|     |  _  |  |  |  |  __||  ||  _  ||  ||        |  ❇
 ❈ |_____|__|__|_____|________|____||__||___._||__||__|__|__|  ❈
 ❅                                                             ❅
 ❆ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆ ❈ ❇ ❊ ❅ ❉ ❆

                      "ice to meet you"

Simple scripts to claim and restake vested bonds from OlympusDAO (OHM/sOHM) and its many forks

Originally written for SnowbankDAO, but now supports many other OlympusDAO forks, including Wonderland, KlimaDAO and probably more.

PRs and bug reports welcome

Setup

yarn install

Setup the .env file:

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()):

yarn snowbankdao:stats
yarn klimadao:stats

Claim your rewards (redeem()):

yarn snowbankdao:redeem
yarn klimadao:stats

To run that every 8 hours, you could use cron, systemd or just a lazy bash loop:

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 and Electronic Frontier Foundation

Thanks

Shoutout to the OUE CREW for hot tips

Shoutout to 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

ohmfork-autoclaim's People

Contributors

jamiew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ohmfork-autoclaim's Issues

does this work?

How does this work? I'm trying this but it fails:

yarn run v1.22.15
$ yarn hardhat run --network polygon scripts/klimadao/stats.ts 
$ /Users/meebo/work/personal/ohmfork-autoclaim/node_modules/.bin/hardhat run --network polygon scripts/klimadao/stats.ts
HardhatError: HH700: Artifact for contract "KlimaToken" not found.
    at Artifacts._getArtifactPathFromFiles (/Users/meebo/work/personal/ohmfork-autoclaim/node_modules/hardhat/src/internal/artifacts.ts:391:13)
    at Artifacts._getArtifactPath (/Users/meebo/work/personal/ohmfork-autoclaim/node_modules/hardhat/src/internal/artifacts.ts:316:17)
    at Artifacts.readArtifact (/Users/meebo/work/personal/ohmfork-autoclaim/node_modules/hardhat/src/internal/artifacts.ts:49:26)
    at getContractAt (/Users/meebo/work/personal/ohmfork-autoclaim/node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:271:22)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.