cleaned up partial liquidator and readme

This commit is contained in:
dd 2021-04-18 10:10:30 -04:00
parent 682a90915b
commit de6940d057
1 changed files with 1 additions and 0 deletions

View File

@ -331,6 +331,7 @@ async function runPartialLiquidator() {
ma = await client.getMarginAccount(connection, ma.publicKey, dexProgramId)
console.log(`Successful partial liquidation\n${ma.toPrettyString(mangoGroup, prices)}\nbeingLiquidated: ${ma.beingLiquidated}`)
notify(`Successful partial liquidation\n${ma.toPrettyString(mangoGroup, prices)}\nbeingLiquidated: ${ma.beingLiquidated}`)
break // This is so wallets get balanced
} catch (e) {
if (!e.timeout) {
throw e