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 inVaultUserLtvTracker
contract.src/force_exit.py
- Monitor leverage positions and trigger exits/claims for those that approach the liquidation threshold.
- Install poetry
- Install dependencies:
poetry install
cp .env.example .env
- Fill .env file with appropriate values
poetry shell
export PYTHONPATH=.
python <script-path>