use solana_pubkey::Pubkey;
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, borsh::BorshSerialize, borsh::BorshDeserialize, PartialEq)]
pub struct Closed {
pub user_key: Pubkey,
pub dca_key: Pubkey,
pub in_deposited: u64,
pub input_mint: Pubkey,
pub output_mint: Pubkey,
pub cycle_frequency: i64,
pub in_amount_per_cycle: u64,
pub created_at: i64,
pub total_in_withdrawn: u64,
pub total_out_withdrawn: u64,
pub unfilled_amount: u64,
pub user_closed: bool,
}