Compound script for iron self-vaults
Instructions:
- Git clone
cp .env.sample .env
- Populate the 3 variables in .env
- npm i
npx hardhat run script/01_compound.ts
(against forked mainnet to test if it works)npx hardhat run script/01_compound.ts --network polygon
(against mainnet)
Script currently compounds every 5 minutes, this can be adjusted in script/01_compound.ts