Trait tulipv2_sdk_common::config::strategy::traits::TulipProgramConfig
source · [−]pub trait TulipProgramConfig {
fn collateral_mint(&self) -> Pubkey;
fn lending_market(&self) -> Pubkey;
fn lending_market_authority(&self) -> Pubkey;
fn pyth_price_account(&self) -> Pubkey;
fn pyth_program_id(&self) -> Pubkey;
fn reserve(&self) -> Pubkey;
fn reserve_liquidity(&self) -> Pubkey;
fn vault_collateral_account(&self) -> Pubkey;
}Expand description
Trait type that is used to return configuration information, instruction helpers, etc.. for solend tulip vaults
Required Methods
sourcefn collateral_mint(&self) -> Pubkey
fn collateral_mint(&self) -> Pubkey
returns the address of the collateral mint issued by the lending reserve
sourcefn lending_market(&self) -> Pubkey
fn lending_market(&self) -> Pubkey
returns the lending market that the reserve is a part of
returns the authority of the lending market
sourcefn pyth_price_account(&self) -> Pubkey
fn pyth_price_account(&self) -> Pubkey
returns the pyth price feed account
sourcefn pyth_program_id(&self) -> Pubkey
fn pyth_program_id(&self) -> Pubkey
returns the address of the pyth oracle program
sourcefn reserve_liquidity(&self) -> Pubkey
fn reserve_liquidity(&self) -> Pubkey
returns the token account the reserve uses to hold deposited liquidity
sourcefn vault_collateral_account(&self) -> Pubkey
fn vault_collateral_account(&self) -> Pubkey
the tulip standalone vault’s collateral token account