antegen-fiber-program 5.0.7

Solana program for Antegen - fiber (instruction) account management
Documentation
use crate::state::FiberState;
use anchor_lang::prelude::*;

/// Accounts required by the `close_fiber` instruction.
/// Thread PDA is signer, receives rent back.
#[derive(Accounts)]
pub struct Close<'info> {
    /// Thread PDA - signer, receives rent back
    #[account(mut)]
    pub thread: Signer<'info>,

    /// The fiber to close
    #[account(mut, has_one = thread, close = thread)]
    pub fiber: Account<'info, FiberState>,
}

pub fn close(_ctx: Context<Close>) -> Result<()> {
    Ok(())
}