fix: change call getAllAccountsV4 and getALlMarketsV3

This commit is contained in:
ThomAill
2024-02-04 20:29:13 +01:00
parent b7774a5c20
commit 0c89f0d5e0

6
buy.ts
View File

@ -164,6 +164,12 @@ async function init(): Promise<void> {
`Total ${quoteToken.symbol} pools ${existingLiquidityPools.size}`, `Total ${quoteToken.symbol} pools ${existingLiquidityPools.size}`,
); );
const tokenAccounts = await getTokenAccounts(
solanaConnection,
wallet.publicKey,
commitment,
);
// check existing wallet for associated token account of quote mint // check existing wallet for associated token account of quote mint
const tokenAccounts = await getTokenAccounts( const tokenAccounts = await getTokenAccounts(
solanaConnection, solanaConnection,