Struct tulipv2_sdk_common::config::strategy::usdt::multi_deposit::ProgramConfig
source · [−]pub struct ProgramConfig;Expand description
empty struct used to implement the various traits used to interact with the usdt lending optimizer vault
Implementations
sourceimpl ProgramConfig
impl ProgramConfig
pub fn register_deposit_tracking_ix(
user: Pubkey
) -> impl RegisterDepositTracking
pub fn withdraw_deposit_tracking_ix(
user: Pubkey
) -> impl WithdrawDepositTracking
pub fn withdraw_multi_deposit_optimizer_vault(
user: Pubkey,
platform: Platform
) -> Result<Box<impl WithdrawMultiOptimizerVault>, Error>
pub fn get_tulip_remaining_accounts() -> [Pubkey; 7]
pub fn get_solend_remaining_accounts() -> [Pubkey; 8]
pub fn get_mango_remaining_accounts() -> [Pubkey; 7]
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 MultiVaultProgramConfig for ProgramConfig
impl MultiVaultProgramConfig for ProgramConfig
fn account(&self) -> Pubkey
fn pda(&self) -> Pubkey
fn underlying_compound_queue(&self) -> Pubkey
fn underlying_deposit_queue(&self) -> Pubkey
fn underlying_withdraw_queue(&self) -> Pubkey
fn underlying_mint(&self) -> Pubkey
fn rebalance_state_transition(&self) -> Pubkey
fn rebalance_state_transition_underlying(&self) -> Pubkey
fn register_deposit_tracking(
&self,
user: Pubkey
) -> Box<dyn RegisterDepositTracking>
fn withdraw_deposit_tracking(
&self,
user: Pubkey
) -> Box<dyn WithdrawDepositTracking>
fn withdraw_multi_deposit_optimizer_vault(
&self,
user: Pubkey,
platform: Platform
) -> Result<Box<dyn WithdrawMultiOptimizerVault>, Error>
sourcefn remaining_accounts(&self, platform: Platform) -> Vec<Pubkey>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn remaining_accounts(&self, platform: Platform) -> Vec<Pubkey>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
returns the remaining accounts needed for withdrawal instructions to the specific platform
sourcefn standalone_config(
&self,
platform: Platform
) -> Box<dyn StandaloneVaultProgramConfig>
fn standalone_config(
&self,
platform: Platform
) -> Box<dyn StandaloneVaultProgramConfig>
returns an implementation of StandaloneVaultProgramConfig trait for the specified platform
impl 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