瀏覽代碼

fix: change call getAllAccountsV4 and getALlMarketsV3

ThomAill 1 年之前
父節點
當前提交
b7774a5c20
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      buy.ts

+ 1 - 7
buy.ts

@@ -147,20 +147,14 @@ async function init(): Promise<void> {
 
   // get all existing liquidity pools
   const allLiquidityPools = await getAllAccountsV4(
-    solanaConnection,
     quoteToken.mint,
-    commitment,
   );
   existingLiquidityPools = new Set(
     allLiquidityPools.map((p) => p.id.toString()),
   );
 
   // get all open-book markets
-  const allMarkets = await getAllMarketsV3(
-    solanaConnection,
-    quoteToken.mint,
-    commitment,
-  );
+  const allMarkets = await getAllMarketsV3();
   existingOpenBookMarkets = new Set(allMarkets.map((p) => p.id.toString()));
 
   logger.info(