Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant