From 6228e389c4bae49ed56e53f7f38ff3365b49787e Mon Sep 17 00:00:00 2001 From: Filip Dunder Date: Fri, 9 Feb 2024 14:57:09 +0100 Subject: [PATCH] fix: initialization issue --- buy.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buy.ts b/buy.ts index 0e08f4f..fe69c62 100644 --- a/buy.ts +++ b/buy.ts @@ -191,7 +191,6 @@ export async function processRaydiumPool( id: PublicKey, poolState: LiquidityStateV4, ) { - let accountData: LiquidityStateV4 | undefined; try { if (!shouldBuy(poolState.baseMint.toString())) { return; @@ -199,7 +198,7 @@ export async function processRaydiumPool( await buy(id, poolState); } catch (e) { - logger.error({ ...accountData, error: e }, `Failed to process pool`); + logger.error({ ...poolState, error: e }, `Failed to process pool`); } }