Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 741 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 741 Bytes

Stakewise periodic tasks

Collection of scripts that should be run periodically.

List of scripts:

  • src/update_price.py - calls the function on the mainnet that updates the osETH-to-ETH price on the L2 network, i.e., the target network.
  • src/update_ltv.py - updates user having maximum LTV in given vault. Users are stored in VaultUserLtvTracker contract.
  • src/force_exit.py - Monitor leverage positions and trigger exits/claims for those that approach the liquidation threshold.

Setup

  1. Install poetry
  2. Install dependencies: poetry install
  3. cp .env.example .env
  4. Fill .env file with appropriate values

Run

  1. poetry shell
  2. export PYTHONPATH=.
  3. python <script-path>