-
Clone the repository
git clone https://github.com/flexmeow/liquidator-bot.git cd liquidator-bot -
Set up virtual environment
uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
-
Install dependencies
# Install all dependencies uv syncNote: This project uses uv for faster dependency installation. If you don't have uv installed, you can install it with
pip install uvor follow the installation instructions. -
Environment setup
cp .env.example .env # Edit .env with your API keys and configuration # Load environment variables into your shell session export $(grep -v '^#' .env | xargs)
Run:
silverback run --network :mainnetRun using docker compose:
docker compose up --buildStop docker compose:
docker compose downFormat and lint code with ruff:
# Format code
ruff format .
# Lint code
ruff check .
# Fix fixable lint issues
ruff check --fix .Type checking with mypy:
mypy bot