pub struct GlobalConfig {Show 17 fields
pub epoch: u64,
pub curve_type: u8,
pub index: u16,
pub migrate_fee: u64,
pub trade_fee_rate: u64,
pub max_share_fee_rate: u64,
pub min_base_supply: u64,
pub max_lock_rate: u64,
pub min_base_sell_rate: u64,
pub min_base_migrate_rate: u64,
pub min_quote_fund_raising: u64,
pub quote_mint: Pubkey,
pub protocol_fee_owner: Pubkey,
pub migrate_fee_owner: Pubkey,
pub migrate_to_amm_wallet: Pubkey,
pub migrate_to_cpswap_wallet: Pubkey,
pub padding: [u64; 16],
}Fields§
§epoch: u64§curve_type: u8§index: u16§migrate_fee: u64§trade_fee_rate: u64§min_base_supply: u64§max_lock_rate: u64§min_base_sell_rate: u64§min_base_migrate_rate: u64§min_quote_fund_raising: u64§quote_mint: Pubkey§protocol_fee_owner: Pubkey§migrate_fee_owner: Pubkey§migrate_to_amm_wallet: Pubkey§migrate_to_cpswap_wallet: Pubkey§padding: [u64; 16]Implementations§
Source§impl GlobalConfig
impl GlobalConfig
pub const DISCRIMINATOR: [u8; 8]
pub fn try_from_bytes(data: &[u8]) -> Result<Self, Error>
Auto Trait Implementations§
impl Freeze for GlobalConfig
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnwindSafe for GlobalConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more