-
Notifications
You must be signed in to change notification settings - Fork 29
35 lines (26 loc) · 998 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Harvest vaults
on:
schedule:
- cron: '0 0 */2 * *'
workflow_dispatch:
jobs:
harvest:
runs-on: ubuntu-latest
env:
MAINNET_PRIVKEY: ${{ secrets.HARVESTER }}
RINKEBY_PRIVKEY: ${{ secrets.HARVESTER }}
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
steps:
- uses: actions/checkout@v2
- name: NPM Install
run: npm i
- name: Compile contracts
run: npx hardhat compile
- name: Harvest Dai to WBTC Vault
run: npx hardhat harvest --vault 0xc8f2E91dC9d198edEd1b2778F6f2a7fd5bBeac34 --network live
- name: Harvest Dai to YFI Vault
run: npx hardhat harvest --vault 0x41D079ce7282d49bf4888C71B5D9E4A02c371F9B --network live
- name: Harvest Dai to ETH Vault
run: npx hardhat harvest --vault 0x2dCdCA085af2E258654e47204e483127E0D8b277 --network live
- name: Harvest USDC to ETH Vault
run: npx hardhat harvest --vault 0x89eC5dF87a5186A0F0fa8Cb84EdD815de6047357 --network live