use anchor_lang::prelude::*;
pub const AMM_CONFIG_SEED: &str = "amm_config";
#[account]
#[derive(Default, Debug)]
pub struct AmmConfig {
pub bump: u8,
pub disable_create_pool: bool,
pub index: u64,
pub token_0_lp_rate: u64,
pub token_1_lp_rate: u64,
pub protocol_fee: u64,
pub creator_fee: u64,
pub protocol_owner: Pubkey,
pub fund_owner: Pubkey,
pub padding: [u64; 16],
}
impl AmmConfig {
pub const LEN: usize = 8 + 1 + 8 + 2 + 4 * 8 + 32 * 2 + 8 * 16;
}