auto-redeem-rome-bond
Disclaimer
Exporting your private key is extremely dangerous! If you don't know hot to keep it safe, you SHOULD NOT export or input it.
It is not necessary to use the private key, you can still use this script without exporting it.
Quick Start
- Config
.env
file.⚠️ For security reason, you can use this script without setting seed phase/private key in.env
file, if you do so, you will need to redeem bond manually. - Add your bond contract. gOHM bond contract was already added. You can find all bond contracts here.
- Copy abi file as json format, add it in the
abi
folder. - Run
yarn compile:abi
, you'll see a new factory class incontracts/index.ts
. - Modify
index.ts
, replaceGOHMBond__factory
with your targe contract factory class. - Run
yarn compile && yarn start
.