From b4ec6c49d80c2f1b48acabb39843fa97b035cf94 Mon Sep 17 00:00:00 2001 From: spalen0 Date: Wed, 7 Aug 2024 14:47:59 +0200 Subject: [PATCH] Add maker dao --- .github/workflows/maker-bad-debt.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/maker-bad-debt.yml diff --git a/.github/workflows/maker-bad-debt.yml b/.github/workflows/maker-bad-debt.yml new file mode 100644 index 0000000..cb4f176 --- /dev/null +++ b/.github/workflows/maker-bad-debt.yml @@ -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" \ No newline at end of file