Skip to content

Commit

Permalink
Add maker dao
Browse files Browse the repository at this point in the history
  • Loading branch information
spalen0 committed Aug 7, 2024
1 parent 2ef9c70 commit b4ec6c4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/maker-bad-debt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Maker Bad Debt Trigger

on:
schedule:
- cron: '10 * * * *'

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 Maker
run: python bad-debt-trigger.py
env:
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"

0 comments on commit b4ec6c4

Please sign in to comment.