-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (57 loc) · 2.4 KB
/
comp-bad-debt.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Compound V3 Bad Debt Trigger
on:
schedule:
- cron: '5 * * * *'
env:
DEBT_THRESHOLD_RATIO: "0.5"
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
jobs:
my_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Comp V3 WETH Mainnet
run: python bad-debt-trigger.py
env:
PROTOCOL: "Comp V3 WETH Mainnet"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/ethereum_compound%20v3_WETH.json"
- name: Run Comp V3 USDC Mainnet
run: python bad-debt-trigger.py
env:
PROTOCOL: "Comp V3 USDC Mainnet"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/ethereum_compound%20v3_USDC.json"
- name: Run Comp V3 USDC Arbitrum
run: python bad-debt-trigger.py
env:
PROTOCOL: "Comp V3 USDC Arbitrum"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/arbitrum_compound%20v3_USDC.json"
- name: Run Comp V3 USDCe Arbitrum
run: python bad-debt-trigger.py
env:
PROTOCOL: "Comp V3 USDCe Arbitrum"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/arbitrum_compound%20v3_USDCe.json"
- name: Run Comp V3 USDCe Polygon
run: python bad-debt-trigger.py
env:
PROTOCOL: "Comp V3 USDC Polygon"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/polygon_compound%20v3_USDCe.json"
- name: Run Comp V3 WETH Base
run: python bad-debt-trigger.py
env:
PROTOCOL: "Comp V3 WETH Base"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/base_compound%20v3_WETH.json"
- name: Run Comp V3 USDbC Base
run: python bad-debt-trigger.py
env:
PROTOCOL: "Comp V3 USDbC Base"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/base_compound%20v3_USDbC.json"