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

feat: Burn SPL tokens from the pool when burning compressed tokens #984

Merged
merged 5 commits into from
Jul 16, 2024

Conversation

vadorovsky
Copy link
Contributor

Similarly to the mint instruction, where we are minting SPL tokens, burn SPL tokens when calling burn instruction.

#[account(seeds = [CPI_AUTHORITY_PDA_SEED], bump,)]
pub cpi_authority_pda: UncheckedAccount<'info>,
/// CHECK: that authority is mint authority
#[account(mut, constraint = mint.mint_authority.unwrap() == authority.key())]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

constraint = mint.mint_authority.unwrap() == authority.key()
'is this required by spl burn?

@ananas-block ananas-block marked this pull request as ready for review July 15, 2024 14:08
@ananas-block ananas-block force-pushed the vadorovsky/spl-token branch from a003566 to f1474b0 Compare July 15, 2024 14:14
vadorovsky and others added 4 commits July 16, 2024 03:18
Similarly to the `mint` instruction, where we are minting SPL tokens,
burn SPL tokens when calling `burn` instruction.
@ananas-block ananas-block force-pushed the vadorovsky/spl-token branch from 59e06ff to ae25dfa Compare July 16, 2024 02:21
@ananas-block ananas-block merged commit 7e6670a into main Jul 16, 2024
13 checks passed
@ananas-block ananas-block deleted the vadorovsky/spl-token branch July 16, 2024 04:03
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

Successfully merging this pull request may close these issues.

2 participants