liqtest readme update

This commit is contained in:
Christian Kamm 2024-03-14 09:53:43 +01:00
parent e20052f6e5
commit 4bf45f2576
1 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,11 @@ PAYER_KEYPAIR=~/.config/solana/mb-liqtest.json
GROUP_NUM=200
```
### Get devnet SOL
The scripts need a lot of SOL for mint, market, group and account creation.
There's ample available, best to ask around.
### Create tokens and markets
This is one-time setup:
@ -45,6 +50,13 @@ This creates a bunch of to-be-liquidated accounts as well as a LIQOR account.
Run the liquidator on the group with the liqor account.
Since devnet doesn't have any jupiter, run with
```
JUPITER_VERSION=mock
TCS_MODE=borrow-buy
REBALANCE=false
```
### Settle and close all open mango accounts
At any point, to reset by closing all accounts: