metaplex-foundation / mpl-token-metadata

Program to attach additional data to Fungible or Non-Fungible tokens on Solana.
https://developers.metaplex.com/token-metadata
Other
124 stars 65 forks source link

Burning LP Tokens with BurnV1 #94

Open bicced opened 7 months ago

bicced commented 7 months ago

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 commented 7 months ago

Is LP burning supported by metaplex?

samuelvanderwaal commented 7 months ago

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?