Trait tulipv2_sdk_common::config::strategy::traits::SolendProgramConfig
source · [−]pub trait SolendProgramConfig {
fn collateral_mint(&self) -> Pubkey;
fn lending_market(&self) -> Pubkey;
fn lending_market_authority(&self) -> Pubkey;
fn pyth_price_account(&self) -> Pubkey;
fn switchboard_price_account(&self) -> Pubkey;
fn pyth_program_id(&self) -> Pubkey;
fn switchboard_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 standalone 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 switchboard_price_account(&self) -> Pubkey
fn switchboard_price_account(&self) -> Pubkey
returns the switchboard price account
sourcefn pyth_program_id(&self) -> Pubkey
fn pyth_program_id(&self) -> Pubkey
returns the address of the pyth oracle program
sourcefn switchboard_program_id(&self) -> Pubkey
fn switchboard_program_id(&self) -> Pubkey
returns the address of the switchboard 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 solend standalone vault’s collateral token account