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

swap code #3

Open
go-spider opened this issue Jun 29, 2024 · 1 comment
Open

swap code #3

go-spider opened this issue Jun 29, 2024 · 1 comment

Comments

@go-spider
Copy link

At line 209 of the file createAndManageLP.ts from the repository at solana-token-kit/blob/main/src:
const TOKEN_TYPE = new Token(
TOKEN_PROGRAM_ID,
baseMint,
baseDecimals,
"ABC",
"ABC"
);
There is no slippage set. Is it okay for swapping? Are there any safety issues with this?"ABC" is ok?

@mrbpp
Copy link

mrbpp commented Aug 12, 2024

Have you had any success with the code?

I cannot create the LP and the swap in one bundle.

It works only when I disable the swaps, but then you cannot snipe the token launch to secure it.

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

2 participants