Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Cannot Create Liquidity Pool with existing Token on Testnet #18

Open
shubhamanandspeqto opened this issue Mar 3, 2022 · 0 comments
Open

Comments

@shubhamanandspeqto
Copy link

We had created Account and it creating new pool , then after we create all accounts in one transaction functionality i.e
let tx = await sendTransaction(connection, wallet, instructions, [
liquidityTokenMint,
depositorAccount,
feeAccount,
...holdingAccounts,
...signers,
]);
, it show 2 popup one is "Accounts created" and second one is "Adding Liquidity...", After that Adding liquidity cancelled. was failed

This is function that i facing problem
instructions.push(
createInitSwapInstruction(
tokenSwapAccount,
authority,
holdingAccounts[0].publicKey,
holdingAccounts[1].publicKey,
liquidityTokenMint.publicKey,
feeAccount.publicKey,
depositorAccount.publicKey,
programIds().token,
programIds().swap,
nonce,
options,
programIds().swapLayout === TokenSwapLayout
)
);
Solve a problem please!!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant