mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-13 00:02:36 +10:00
fix: change call getAllAccountsV4 and getALlMarketsV3
This commit is contained in:
8
buy.ts
8
buy.ts
@ -147,20 +147,14 @@ async function init(): Promise<void> {
|
|||||||
|
|
||||||
// get all existing liquidity pools
|
// get all existing liquidity pools
|
||||||
const allLiquidityPools = await getAllAccountsV4(
|
const allLiquidityPools = await getAllAccountsV4(
|
||||||
solanaConnection,
|
|
||||||
quoteToken.mint,
|
quoteToken.mint,
|
||||||
commitment,
|
|
||||||
);
|
);
|
||||||
existingLiquidityPools = new Set(
|
existingLiquidityPools = new Set(
|
||||||
allLiquidityPools.map((p) => p.id.toString()),
|
allLiquidityPools.map((p) => p.id.toString()),
|
||||||
);
|
);
|
||||||
|
|
||||||
// get all open-book markets
|
// get all open-book markets
|
||||||
const allMarkets = await getAllMarketsV3(
|
const allMarkets = await getAllMarketsV3();
|
||||||
solanaConnection,
|
|
||||||
quoteToken.mint,
|
|
||||||
commitment,
|
|
||||||
);
|
|
||||||
existingOpenBookMarkets = new Set(allMarkets.map((p) => p.id.toString()));
|
existingOpenBookMarkets = new Set(allMarkets.map((p) => p.id.toString()));
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|||||||
Reference in New Issue
Block a user