Skip to content

Sonne Bad Debt Trigger #6806

Sonne Bad Debt Trigger

Sonne Bad Debt Trigger #6806

name: Sonne Bad Debt Trigger
on:
schedule:
- cron: '0 * * * *'
jobs:
my_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run script
run: python bad-debt-trigger.py
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
PROTOCOL: "Sonne"
DEBT_THRESHOLD_RATIO: "1"
DATA_URL: "https://raw.githubusercontent.com/Risk-DAO/simulation-results/main/bad-debt/latest/optimism_sonne.json"