pub struct Vault {
Show 64 fields pub base: Pubkey, pub bump: u8, pub bump1: u8, pub bump2: u8, pub bump3: u8, pub manager: Pubkey, pub vault_lp_token_mint: Pubkey, pub farm_lp_mint: Pubkey, pub farm_reward_token_a_mint: Pubkey, pub farm_reward_token_b_mint: Pubkey, pub pool_lp_custody_account: Pubkey, pub pool_token_a_custody_account: Pubkey, pub pool_token_b_custody_account: Pubkey, pub farm_token_a_reward_custody_account: Pubkey, pub farm_token_b_reward_custody_account: Pubkey, pub pool_coin_token_account: Pubkey, pub pool_pc_token_account: Pubkey, pub pool_token_a_mint: Pubkey, pub pool_token_b_mint: Pubkey, pub pool_lp_token_mint: Pubkey, pub amm: Pubkey, pub amm_authority: Pubkey, pub amm_open_orders: Pubkey, pub amm_target: Pubkey, pub pool_withdraw_queue: Pubkey, pub pool_temp_lp_token_account: Pubkey, pub farm: Pubkey, pub farm_authority: Pubkey, pub farm_lp_token_account: Pubkey, pub farm_reward_token_a_account: Pubkey, pub farm_reward_token_b_account: Pubkey, pub serum_market: Pubkey, pub serum_program_id: Pubkey, pub serum_coin_vault_account: Pubkey, pub serum_pc_vault_account: Pubkey, pub serum_vault_signer: Pubkey, pub pool_program_id: Pubkey, pub farm_program_id: Pubkey, pub farm_version: u64, pub deposits_allowed: bool, pub withdraws_allowed: bool, pub fee_millibps: u64, pub external_fee_millibps: u64, pub crank_time: u64, pub crank_step: u64, pub min_crank_interval: u64, pub token_a_added: u64, pub token_a_removed: u64, pub token_b_added: u64, pub token_b_removed: u64, pub token_a_rewards: u64, pub token_b_rewards: u64, pub stake_info_account: Pubkey, pub stake_info_account_v4: Pubkey, pub stake_info_account_v5: Pubkey, pub fees_account_a: Pubkey, pub fees_account_b: Pubkey, pub serum_bids: Pubkey, pub serum_asks: Pubkey, pub serum_event_queue: Pubkey, pub stake_info_account_v5_mainnet: Pubkey, pub bump4: u8, pub bump5: u8, pub stake_info_account_orca: Pubkey,
}
Expand description

A Vault manages tokens to stake into Raydium LPs.

Fields

base: Pubkey

Base of the strategy.

bump: u8

Bump

bump1: u8bump2: u8bump3: u8manager: Pubkey

Account which can manage the strategy.

vault_lp_token_mint: Pubkeyfarm_lp_mint: Pubkeyfarm_reward_token_a_mint: Pubkeyfarm_reward_token_b_mint: Pubkeypool_lp_custody_account: Pubkeypool_token_a_custody_account: Pubkeypool_token_b_custody_account: Pubkeyfarm_token_a_reward_custody_account: Pubkeyfarm_token_b_reward_custody_account: Pubkeypool_coin_token_account: Pubkeypool_pc_token_account: Pubkeypool_token_a_mint: Pubkey

Mint of pool.

pool_token_b_mint: Pubkeypool_lp_token_mint: Pubkey

LP token mint.

amm: Pubkeyamm_authority: Pubkeyamm_open_orders: Pubkeyamm_target: Pubkeypool_withdraw_queue: Pubkeypool_temp_lp_token_account: Pubkeyfarm: Pubkeyfarm_authority: Pubkeyfarm_lp_token_account: Pubkeyfarm_reward_token_a_account: Pubkeyfarm_reward_token_b_account: Pubkeyserum_market: Pubkeyserum_program_id: Pubkeyserum_coin_vault_account: Pubkeyserum_pc_vault_account: Pubkeyserum_vault_signer: Pubkeypool_program_id: Pubkeyfarm_program_id: Pubkeyfarm_version: u64deposits_allowed: boolwithdraws_allowed: boolfee_millibps: u64

Withdraw fee in 1000th’s of a basis point.

external_fee_millibps: u64crank_time: u64crank_step: u64min_crank_interval: u64token_a_added: u64token_a_removed: u64token_b_added: u64token_b_removed: u64token_a_rewards: u64token_b_rewards: u64stake_info_account: Pubkeystake_info_account_v4: Pubkeystake_info_account_v5: Pubkeyfees_account_a: Pubkeyfees_account_b: Pubkeyserum_bids: Pubkeyserum_asks: Pubkeyserum_event_queue: Pubkeystake_info_account_v5_mainnet: Pubkeybump4: u8bump5: u8stake_info_account_orca: Pubkey

Implementations

Trait Implementations

Deserializes previously initialized account data. Should fail for all uninitialized accounts, where the bytes are zeroed. Implementations should be unique to a particular account type so that one can never successfully deserialize the data of one account type into another. For example, if the SPL token program were to implement this trait, it should be impossible to deserialize a Mint account into a token Account. Read more

Deserializes account data without checking the account discriminator. This should only be used on account initialization, when the bytes of the account are zeroed. Read more

Serializes the account data into writer.

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more

Deserialize this instance from a slice of bytes.

Serialize this instance into a vector of bytes.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.