Trait tulipv2_sdk_common::config::strategy::traits::MangoProgramConfig
source · [−]pub trait MangoProgramConfig {
fn cache(&self) -> Pubkey;
fn group(&self) -> Pubkey;
fn group_signer(&self) -> Pubkey;
fn group_token_account(&self) -> Pubkey;
fn root_bank(&self) -> Pubkey;
fn node_bank(&self) -> Pubkey;
fn optimizer_mango_account(&self) -> Pubkey;
}Expand description
Trait type that is used to return configuration information, instruction helpers, etc.. for solend mango vaults
Required Methods
sourcefn group_signer(&self) -> Pubkey
fn group_signer(&self) -> Pubkey
returns the address of the group authority
sourcefn group_token_account(&self) -> Pubkey
fn group_token_account(&self) -> Pubkey
returns the address of the group’s token account which accepts the asset being accepted by the strategy. for example usdc strategy vaults, this will be the mango group’s usdc token account
sourcefn optimizer_mango_account(&self) -> Pubkey
fn optimizer_mango_account(&self) -> Pubkey
address of the standalone vaults mango account