8000 GitHub - mrgnlabs/eva01
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mrgnlabs/eva01

Repository files navigation

Eva01 - the Marginfi Liquidator

Structure

  • bin - shell scripts and environment configuration file templare
  • src - source code
  • eva.Dockerfile - the Docker configuration for building an image to run on Kubernetes.

Configuration

The env.template file is a template for required and optional environment variables that are used by Eva.

Deployment

  1. Install dependencies
  2. Clone the Git repo.
  3. Create and configure the .env file by using env.template as prototype.

VSCode: create the VSCode launch configuration and add the configured .env to it.

Run

  1. Source the .env file. Example: source src/eva01/bin/prod.env
  2. Optionally Rotate logs: mv ~/log/liquidator.log ~/log/liquidator.log.$(date +'%Y%m%dT%H%M%S')
  3. Run the Liquidator: nohup bash $LIQUIDATOR_SRC_PATH/bin/start.sh >> ~/log/liquidator.log 2>&1 &

Initial Loading Time The initial loading phase can take some time, depending on your RPC. Eva will load everything needed into the state, including all Marginfi Accounts. Expect the loading time to be between 1-3 minutes depending on the RPC.

Local Docker: Run docker build -f <CONFIG FILE> -t eva:latest . to build an image and docker run --env-file docker.staging.env --rm -v <WALLET>:<WALLET> eva to run it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages

0