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

Burning LP Tokens with BurnV1 #94

Open
bicced opened this issue Feb 7, 2024 · 2 comments
Open

Burning LP Tokens with BurnV1 #94

bicced opened this issue Feb 7, 2024 · 2 comments

Comments

@bicced
Copy link

bicced commented Feb 7, 2024

I am experience issues burning Raydium LP tokens, i'm getting the error "incorrect account owner"

Is my implementation correct? Seems to work on other tokens created and minted.

`
const umi = createUmi(RPC_ENDPOINT).use(walletAdapterIdentity(wallet)).use(mplTokenMetadata());
const mint = publicKey(tokenAddress);

  await burnV1(umi, {
    mint,
    amount: parseInt(amount),
    tokenStandard: TokenStandard.Fungible,
  }).sendAndConfirm(umi)

`

@bicced
Copy link
Author

bicced commented Feb 8, 2024

Is LP burning supported by metaplex?

@samuelvanderwaal
Copy link
Contributor

samuelvanderwaal commented Feb 9, 2024

Is LP burning supported by metaplex?

If they use Token 2022 you will need to derive the token account manually and pass it in. Do you have an example of one of these tokens?

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