Compound V3 Bad Debt Trigger #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compound V3 Bad Debt Trigger | |
on: | |
schedule: | |
- cron: '5 * * * *' | |
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: | |
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" |