Struct tulipv2_sdk_common::config::strategy::sol::solend::ProgramConfig
source · [−]pub struct ProgramConfig;Trait Implementations
sourceimpl Clone for ProgramConfig
impl Clone for ProgramConfig
sourcefn clone(&self) -> ProgramConfig
fn clone(&self) -> ProgramConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl SolendProgramConfig for ProgramConfig
impl SolendProgramConfig for ProgramConfig
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
sourceimpl StandaloneVaultProgramConfig for ProgramConfig
impl StandaloneVaultProgramConfig for ProgramConfig
returns the address of the standalone vault shares mint
sourcefn underlying_compound_queue(&self) -> Pubkey
fn underlying_compound_queue(&self) -> Pubkey
returns the address of the standalone vault underlying compound queue
sourcefn underlying_deposit_queue(&self) -> Pubkey
fn underlying_deposit_queue(&self) -> Pubkey
returns the address of the standalone vault underlying deposit queue
sourcefn underlying_withdraw_queue(&self) -> Pubkey
fn underlying_withdraw_queue(&self) -> Pubkey
returns the address of the standalone vault underlying withdraw queue
sourcefn underlying_mint(&self) -> Pubkey
fn underlying_mint(&self) -> Pubkey
returns the address of the standalone vault underlying token mint
which is the mint of the token the vault accepts for deposits Read more
sourcefn config_data_account(&self) -> Pubkey
fn config_data_account(&self) -> Pubkey
returns the address of configuration data account
sourcefn information_account(&self) -> Pubkey
fn information_account(&self) -> Pubkey
returns the address of the configuration information account
sourcefn program_id(&self) -> Pubkey
fn program_id(&self) -> Pubkey
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 Read more
sourcefn solend_config(&self) -> Option<Box<dyn SolendProgramConfig>>
fn solend_config(&self) -> Option<Box<dyn SolendProgramConfig>>
when the implementation of this trait is a solend standalone vault
calling this method returns Some(…) Read more
sourcefn tulip_config(&self) -> Option<Box<dyn TulipProgramConfig>>
fn tulip_config(&self) -> Option<Box<dyn TulipProgramConfig>>
when the implementation of this trait is a tulip standalone vault
calling this method returns Some(…) Read more
sourcefn mango_config(&self) -> Option<Box<dyn MangoProgramConfig>>
fn mango_config(&self) -> Option<Box<dyn MangoProgramConfig>>
when the implementation of this trait is a mango standalone vault
calling this method returns Some(…) Read more
sourcefn is_platform(&self, platform: Platform) -> bool
fn is_platform(&self, platform: Platform) -> bool
returns true if the instance of the implementation of this trait is a platform
matching the one specified in
platform, otherwise returns false Read moreimpl Copy for ProgramConfig
Auto Trait Implementations
impl RefUnwindSafe for ProgramConfig
impl Send for ProgramConfig
impl Sync for ProgramConfig
impl Unpin for ProgramConfig
impl UnwindSafe for ProgramConfig
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more