소스 검색

fix: initialization issue

Filip Dunder 1 년 전
부모
커밋
6228e389c4
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      buy.ts

+ 1 - 2
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`);
   }
 }