use {
crate::{errors::ErrorCode, state::*},
anchor_lang::prelude::*,
};
#[derive(Accounts)]
pub struct CloseCtx<'info> {
#[account(mut, close = collector)]
payment_manager: Box<Account<'info, PaymentManager>>,
#[account(mut)]
collector: UncheckedAccount<'info>,
#[account(mut, constraint = closer.key() == payment_manager.authority @ ErrorCode::InvalidAuthority)]
closer: Signer<'info>,
}
pub fn handler(_ctx: Context<CloseCtx>) -> Result<()> {
Ok(())
}