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 account

returns the address of the standalone vault pda

returns the address of the standalone vault shares mint

returns the address of the standalone vault underlying compound queue

returns the address of the standalone vault underlying deposit queue

returns the address of the standalone vault underlying withdraw queue

returns the address of the standalone vault underlying token mint which is the mint of the token the vault accepts for deposits

returns the address of configuration data account

returns the address of the configuration information account

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

when the implementation of this trait is a solend standalone vault calling this method returns Some(…)

when the implementation of this trait is a tulip standalone vault calling this method returns Some(…)

when the implementation of this trait is a mango standalone vault calling this method returns Some(…)

returns true if the instance of the implementation of this trait is a platform matching the one specified in platform, otherwise returns false

returns the farm key of the standalone vault

returns the stringified tag of the standalone vault

Implementors