pub trait StandaloneVaultProgramConfig {
Show 16 methods
fn account(&self) -> Pubkey;
fn pda(&self) -> Pubkey;
fn shares_mint(&self) -> Pubkey;
fn underlying_compound_queue(&self) -> Pubkey;
fn underlying_deposit_queue(&self) -> Pubkey;
fn underlying_withdraw_queue(&self) -> Pubkey;
fn underlying_mint(&self) -> Pubkey;
fn config_data_account(&self) -> Pubkey;
fn information_account(&self) -> Pubkey;
fn program_id(&self) -> Pubkey;
fn solend_config(&self) -> Option<Box<dyn SolendProgramConfig>>;
fn tulip_config(&self) -> Option<Box<dyn TulipProgramConfig>>;
fn mango_config(&self) -> Option<Box<dyn MangoProgramConfig>>;
fn is_platform(&self, platform: Platform) -> bool;
fn farm(&self) -> Farm;
fn tag(&self) -> &str;
}Expand description
Trait type that is used to return configuration information, instruction helpers, etc… for a single standalone vault.
Required Methods
returns the address of the standalone vault shares mint
sourcefn underlying_compound_queue(&self) -> Pubkey
fn underlying_compound_queue(&self) -> Pubkey
returns the address of the standalone vault underlying compound queue
sourcefn underlying_deposit_queue(&self) -> Pubkey
fn underlying_deposit_queue(&self) -> Pubkey
returns the address of the standalone vault underlying deposit queue
sourcefn underlying_withdraw_queue(&self) -> Pubkey
fn underlying_withdraw_queue(&self) -> Pubkey
returns the address of the standalone vault underlying withdraw queue
sourcefn underlying_mint(&self) -> Pubkey
fn underlying_mint(&self) -> Pubkey
returns the address of the standalone vault underlying token mint which is the mint of the token the vault accepts for deposits
sourcefn config_data_account(&self) -> Pubkey
fn config_data_account(&self) -> Pubkey
returns the address of configuration data account
sourcefn information_account(&self) -> Pubkey
fn information_account(&self) -> Pubkey
returns the address of the configuration information account
sourcefn program_id(&self) -> Pubkey
fn program_id(&self) -> Pubkey
returns the address of the program this standalone vault farms. for example solend standalone vaults will return the address of the solend lending program while mango standalone vaults will return the address of the mango program
sourcefn solend_config(&self) -> Option<Box<dyn SolendProgramConfig>>
fn solend_config(&self) -> Option<Box<dyn SolendProgramConfig>>
when the implementation of this trait is a solend standalone vault calling this method returns Some(…)
sourcefn tulip_config(&self) -> Option<Box<dyn TulipProgramConfig>>
fn tulip_config(&self) -> Option<Box<dyn TulipProgramConfig>>
when the implementation of this trait is a tulip standalone vault calling this method returns Some(…)
sourcefn mango_config(&self) -> Option<Box<dyn MangoProgramConfig>>
fn mango_config(&self) -> Option<Box<dyn MangoProgramConfig>>
when the implementation of this trait is a mango standalone vault calling this method returns Some(…)
sourcefn is_platform(&self, platform: Platform) -> bool
fn is_platform(&self, platform: Platform) -> bool
returns true if the instance of the implementation of this trait is a platform
matching the one specified in platform, otherwise returns false