Skip to content

Commit

Permalink
ignore settled markets (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
wphan authored Dec 21, 2024
1 parent 6432dd0 commit 1d8fbc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bots/liquidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2390,6 +2390,11 @@ export class LiquidatorBot implements Bot {
subAccountToLiqPerp: number,
baseAmountToLiquidate: BN
): Promise<boolean> {
// TODO: remove this once the markets are settled properly
if ([37, 49].includes(perpMarketIndex)) {
return false;
}

let txSent = false;
const ix = await this.driftClient.getLiquidatePerpIx(
user.userAccountPublicKey,
Expand Down

0 comments on commit 1d8fbc3

Please sign in to comment.