Go to file
dd c6bd2d27a5 increased limit for partial liquidator to take care of larger 2021-04-17 23:24:51 -04:00
src increased limit for partial liquidator to take care of larger 2021-04-17 23:24:51 -04:00
.gitignore add notification webhook 2021-03-14 00:24:23 +01:00
LICENSE Initial commit 2021-03-09 08:20:27 -05:00
README.md updated readme to add instructions on partial liquidator 2021-04-10 17:29:35 -04:00
crank.sh fixed liquidator bug 2021-04-05 14:11:23 -04:00
package-lock.json add 1% bias to liquidator, to allow third parties to step in first, also improve discord logs 2021-03-16 12:35:07 +01:00
package.json package json pointing to mango client npm package 2021-04-09 16:42:02 -04:00
tsconfig.json separated liquidator from mango repo 2021-03-09 08:32:07 -05:00
yarn.lock package json pointing to mango client npm package 2021-04-09 16:42:02 -04:00

README.md

Mango Liquidator

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

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