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

returns the address of the mango cache

returns the address of the mango group

returns the address of the group authority

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

returns the address of the mango root bank

returns the address of the mango node bank

address of the standalone vaults mango account

Implementors