Skip to content

Commit 1d8fbc3

Browse files
authored
ignore settled markets (#326)
1 parent 6432dd0 commit 1d8fbc3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bots/liquidator.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,6 +2390,11 @@ export class LiquidatorBot implements Bot {
23902390
subAccountToLiqPerp: number,
23912391
baseAmountToLiquidate: BN
23922392
): Promise<boolean> {
2393+
// TODO: remove this once the markets are settled properly
2394+
if ([37, 49].includes(perpMarketIndex)) {
2395+
return false;
2396+
}
2397+
23932398
let txSent = false;
23942399
const ix = await this.driftClient.getLiquidatePerpIx(
23952400
user.userAccountPublicKey,

0 commit comments

Comments
 (0)