Skip to content

StakeWise tasks that have to be executed periodically.

License

Notifications You must be signed in to change notification settings

stakewise/periodic-tasks

Repository files navigation

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>

About

StakeWise tasks that have to be executed periodically.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •