Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test env #6

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions .github/workflows/aave-bad-debt.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Aave V3 Bad Debt Trigger

on:
schedule:
- cron: '0 * * * *'
push:
branches:
- '*'
env:
DEBT_THRESHOLD_RATIO: "0"
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}

jobs:
my_job:
Expand All @@ -21,32 +26,20 @@ jobs:
- name: Run Aave V3 Mainnet
run: python bad-debt-trigger.py
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Aave V3 Mainnet"
DEBT_THRESHOLD_RATIO: "1"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/ethereum_aave%20v3.json"
- name: Run Aave V3 Arbitrum
run: python bad-debt-trigger.py
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Aave V3 Arbitrum"
DEBT_THRESHOLD_RATIO: "1"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/arbitrum_aave%20v3.json"
- name: Run Aave V3 Polygon
run: python bad-debt-trigger.py
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Aave V3 Polygon"
DEBT_THRESHOLD_RATIO: "1"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/polygon_aave%20v3.json"
- name: Run Aave V3 Optimism
run: python bad-debt-trigger.py
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Aave V3 Optimism"
DEBT_THRESHOLD_RATIO: "1"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/optimism_aave%20v3.json"
10 changes: 3 additions & 7 deletions .github/workflows/comp-bad-debt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
schedule:
- cron: '5 * * * *'

env:
DEBT_THRESHOLD_RATIO: "0.5"

jobs:
my_job:
runs-on: ubuntu-latest
Expand All @@ -24,53 +27,46 @@ jobs:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Comp V3 WETH Mainnet"
DEBT_THRESHOLD_RATIO: "1"
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:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Comp V3 USDC Mainnet"
DEBT_THRESHOLD_RATIO: "1"
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:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Comp V3 USDC Arbitrum"
DEBT_THRESHOLD_RATIO: "1"
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:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Comp V3 USDCe Arbitrum"
DEBT_THRESHOLD_RATIO: "1"
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:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Comp V3 USDC Polygon"
DEBT_THRESHOLD_RATIO: "1"
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:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Comp V3 WETH Base"
DEBT_THRESHOLD_RATIO: "1"
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:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Comp V3 USDbC Base"
DEBT_THRESHOLD_RATIO: "1"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/base_compound%20v3_USDbC.json"
4 changes: 3 additions & 1 deletion .github/workflows/maker-bad-debt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
schedule:
- cron: '10 * * * *'

env:
DEBT_THRESHOLD_RATIO: "0.5"

jobs:
my_job:
runs-on: ubuntu-latest
Expand All @@ -24,5 +27,4 @@ jobs:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Maker DAO"
DEBT_THRESHOLD_RATIO: "0.5"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/ethereum_maker.json"