fix: change call getAllAccountsV4 and getALlMarketsV3

This commit is contained in:
ThomAill
2024-02-04 20:27:58 +01:00
parent f3c0cd5651
commit b7774a5c20

8
buy.ts
View File

@ -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(