Struct SetPresetAdaptiveFeeConstantsBuilder
pub struct SetPresetAdaptiveFeeConstantsBuilder { /* private fields */ }
Expand description
Instruction builder for SetPresetAdaptiveFeeConstants
.
§Accounts:
[]
whirlpools_config[writable]
adaptive_fee_tier[signer]
fee_authority
Implementations§
§impl SetPresetAdaptiveFeeConstantsBuilder
impl SetPresetAdaptiveFeeConstantsBuilder
pub fn new() -> SetPresetAdaptiveFeeConstantsBuilder
pub fn whirlpools_config( &mut self, whirlpools_config: Pubkey, ) -> &mut SetPresetAdaptiveFeeConstantsBuilder
pub fn adaptive_fee_tier( &mut self, adaptive_fee_tier: Pubkey, ) -> &mut SetPresetAdaptiveFeeConstantsBuilder
pub fn filter_period( &mut self, filter_period: u16, ) -> &mut SetPresetAdaptiveFeeConstantsBuilder
pub fn decay_period( &mut self, decay_period: u16, ) -> &mut SetPresetAdaptiveFeeConstantsBuilder
pub fn reduction_factor( &mut self, reduction_factor: u16, ) -> &mut SetPresetAdaptiveFeeConstantsBuilder
pub fn adaptive_fee_control_factor( &mut self, adaptive_fee_control_factor: u32, ) -> &mut SetPresetAdaptiveFeeConstantsBuilder
pub fn max_volatility_accumulator( &mut self, max_volatility_accumulator: u32, ) -> &mut SetPresetAdaptiveFeeConstantsBuilder
pub fn tick_group_size( &mut self, tick_group_size: u16, ) -> &mut SetPresetAdaptiveFeeConstantsBuilder
pub fn major_swap_threshold_ticks( &mut self, major_swap_threshold_ticks: u16, ) -> &mut SetPresetAdaptiveFeeConstantsBuilder
pub fn add_remaining_account(
&mut self,
account: AccountMeta,
) -> &mut SetPresetAdaptiveFeeConstantsBuilder
pub fn add_remaining_account( &mut self, account: AccountMeta, ) -> &mut SetPresetAdaptiveFeeConstantsBuilder
Add an additional account to the instruction.
pub fn add_remaining_accounts(
&mut self,
accounts: &[AccountMeta],
) -> &mut SetPresetAdaptiveFeeConstantsBuilder
pub fn add_remaining_accounts( &mut self, accounts: &[AccountMeta], ) -> &mut SetPresetAdaptiveFeeConstantsBuilder
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
§impl Clone for SetPresetAdaptiveFeeConstantsBuilder
impl Clone for SetPresetAdaptiveFeeConstantsBuilder
§fn clone(&self) -> SetPresetAdaptiveFeeConstantsBuilder
fn clone(&self) -> SetPresetAdaptiveFeeConstantsBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Default for SetPresetAdaptiveFeeConstantsBuilder
impl Default for SetPresetAdaptiveFeeConstantsBuilder
§fn default() -> SetPresetAdaptiveFeeConstantsBuilder
fn default() -> SetPresetAdaptiveFeeConstantsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetPresetAdaptiveFeeConstantsBuilder
impl RefUnwindSafe for SetPresetAdaptiveFeeConstantsBuilder
impl Send for SetPresetAdaptiveFeeConstantsBuilder
impl Sync for SetPresetAdaptiveFeeConstantsBuilder
impl Unpin for SetPresetAdaptiveFeeConstantsBuilder
impl UnwindSafe for SetPresetAdaptiveFeeConstantsBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more