757a3ee0cc
* Use ghcr.io container registry * Update base image urls |
||
---|---|---|
.. | ||
src | ||
.env.example | ||
.gitignore | ||
Cargo.toml | ||
Dockerfile.liquidator | ||
README.md |
README.md
Two branches are relevant here:
devnet
: bleeding edge, may be unstable, could be incompatible with deployed programmain
: stable, currently running on themainnet-beta
cluster
Setup Environment
.env Config file:
A .env
file can be used to configure the liquidator setup. See .env.example
for a example.
The environment variables required are
LIQOR_MANGO_ACCOUNT
- public key of the mango accountLIQOR_OWNER
- private key of the owner of the mango accountRPC_URL
- RPC cluster urlSERUM_PROGRAM
- the Openbook program Id the mango group is configured with e.g. primary mango group78b8f4cGCwmZ9ysPFMWLaLTkkaYnUjwMJYStWe5RTSSX
is configured to work withsrmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX
more advanced parameters
MIN_HEALTH_RATIO
- minimum health ratio the liquidator should retain (default 50%)REBALANCE_SLIPPAGE_BPS
- slippage liquidator should tolerate when offloading tokens (default 100)
cargo run --bin liquidator
There is also a dockerfile Dockerfile.liquidator
available in case one wants to run this in a containerized environment.