From 5150f86c2a14aff652580c868caf06286644a944 Mon Sep 17 00:00:00 2001 From: dd Date: Sat, 10 Apr 2021 17:29:35 -0400 Subject: [PATCH] updated readme to add instructions on partial liquidator --- README.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 678e23e..852a0ff 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,40 @@ # Mango Liquidator -## Setup +## Setup Full Liquidator Make sure to edit the .env file to look something like this: ``` export CLUSTER="mainnet-beta" export CLUSTER_URL="https://solana-api.projectserum.com" export KEYPAIR=~/.config/solana/id.json export NODE_ENV=production +export GROUP_NAME="BTC_ETH_USDT" ``` -## Run +### Run ``` yarn install source .env yarn liquidate +``` + + +## Setup Partial Liquidator +Make sure to edit the .env file to look something like this: +``` +export CLUSTER="mainnet-beta" +export CLUSTER_URL="https://solana-api.projectserum.com" +export KEYPAIR=~/.config/solana/id.json +export NODE_ENV=production +export TARGETS="0.1 2" +export GROUP_NAME="BTC_ETH_USDT" +``` + +TARGETS represents the BTC and ETH amounts the partial liquidator should try to maintain +in the liquidator's wallet + +### Run +``` +yarn install +source .env +yarn partialLiquidate ``` \ No newline at end of file