mpl_candy_machine_core/instructions/
withdraw.rs

1use anchor_lang::prelude::*;
2
3use crate::CandyMachine;
4
5pub fn withdraw(_ctx: Context<Withdraw>) -> Result<()> {
6    Ok(())
7}
8
9/// Withdraw the rent SOL from the candy machine account.
10#[derive(Accounts)]
11pub struct Withdraw<'info> {
12    /// Candy Machine acccount.
13    #[account(mut, close = authority, has_one = authority)]
14    candy_machine: Account<'info, CandyMachine>,
15
16    /// Authority of the candy machine.
17    #[account(mut)]
18    authority: Signer<'info>,
19}