Liquidator bot that liquidates unsafe Marginal v1 leverage positions.
The repo uses ApeWorX and Silverback for development.
Set up a virtual environment
python -m venv .venv
source .venv/bin/activate
Install requirements and Ape plugins
pip install -r requirements.txt
ape plugins install .
Include environment variables for the address of the PositionViewer
and the address of the MarginalV1Pool
contract verified on the network
export CONTRACT_ADDRESS_POSITION_VIEWER=<address of the position viewer contract on network>
export CONTRACT_ADDRESS_MARGV1_POOL=<address of marginal v1 pool contract on network>
Then run silverback
silverback run "main:app" --network :mainnet:alchemy --account acct-name