Skip to content

flexmeow/liquidator-bot

Repository files navigation

liquidator-bot

Installation

  1. Clone the repository

    git clone https://github.com/flexmeow/liquidator-bot.git
    cd liquidator-bot
  2. Set up virtual environment

    uv venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  3. Install dependencies

    # Install all dependencies
    uv sync

    Note: This project uses uv for faster dependency installation. If you don't have uv installed, you can install it with pip install uv or follow the installation instructions.

  4. 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)

Usage

Run:

silverback run --network :mainnet

Run using docker compose:

docker compose up --build

Stop docker compose:

docker compose down

Code Style

Format 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

About

Liquidates insolvent Troves

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published