Struct SetAdaptiveFeeConstantsBuilder
pub struct SetAdaptiveFeeConstantsBuilder { /* private fields */ }Expand description
Instruction builder for SetAdaptiveFeeConstants.
§Accounts:
[]whirlpool[]whirlpools_config[writable]oracle[signer]fee_authority
Implementations§
§impl SetAdaptiveFeeConstantsBuilder
impl SetAdaptiveFeeConstantsBuilder
pub fn new() -> SetAdaptiveFeeConstantsBuilder
pub fn whirlpool( &mut self, whirlpool: Address, ) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn whirlpools_config( &mut self, whirlpools_config: Address, ) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn oracle(&mut self, oracle: Address) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn filter_period(
&mut self,
filter_period: u16,
) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn filter_period( &mut self, filter_period: u16, ) -> &mut SetAdaptiveFeeConstantsBuilder
[optional argument]
pub fn decay_period(
&mut self,
decay_period: u16,
) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn decay_period( &mut self, decay_period: u16, ) -> &mut SetAdaptiveFeeConstantsBuilder
[optional argument]
pub fn reduction_factor(
&mut self,
reduction_factor: u16,
) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn reduction_factor( &mut self, reduction_factor: u16, ) -> &mut SetAdaptiveFeeConstantsBuilder
[optional argument]
pub fn adaptive_fee_control_factor(
&mut self,
adaptive_fee_control_factor: u32,
) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn adaptive_fee_control_factor( &mut self, adaptive_fee_control_factor: u32, ) -> &mut SetAdaptiveFeeConstantsBuilder
[optional argument]
pub fn max_volatility_accumulator(
&mut self,
max_volatility_accumulator: u32,
) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn max_volatility_accumulator( &mut self, max_volatility_accumulator: u32, ) -> &mut SetAdaptiveFeeConstantsBuilder
[optional argument]
pub fn tick_group_size(
&mut self,
tick_group_size: u16,
) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn tick_group_size( &mut self, tick_group_size: u16, ) -> &mut SetAdaptiveFeeConstantsBuilder
[optional argument]
pub fn major_swap_threshold_ticks(
&mut self,
major_swap_threshold_ticks: u16,
) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn major_swap_threshold_ticks( &mut self, major_swap_threshold_ticks: u16, ) -> &mut SetAdaptiveFeeConstantsBuilder
[optional argument]
pub fn add_remaining_account(
&mut self,
account: AccountMeta,
) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn add_remaining_account( &mut self, account: AccountMeta, ) -> &mut SetAdaptiveFeeConstantsBuilder
Add an additional account to the instruction.
pub fn add_remaining_accounts(
&mut self,
accounts: &[AccountMeta],
) -> &mut SetAdaptiveFeeConstantsBuilder
pub fn add_remaining_accounts( &mut self, accounts: &[AccountMeta], ) -> &mut SetAdaptiveFeeConstantsBuilder
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
§impl Clone for SetAdaptiveFeeConstantsBuilder
impl Clone for SetAdaptiveFeeConstantsBuilder
§fn clone(&self) -> SetAdaptiveFeeConstantsBuilder
fn clone(&self) -> SetAdaptiveFeeConstantsBuilder
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 Debug for SetAdaptiveFeeConstantsBuilder
impl Debug for SetAdaptiveFeeConstantsBuilder
§impl Default for SetAdaptiveFeeConstantsBuilder
impl Default for SetAdaptiveFeeConstantsBuilder
§fn default() -> SetAdaptiveFeeConstantsBuilder
fn default() -> SetAdaptiveFeeConstantsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetAdaptiveFeeConstantsBuilder
impl RefUnwindSafe for SetAdaptiveFeeConstantsBuilder
impl Send for SetAdaptiveFeeConstantsBuilder
impl Sync for SetAdaptiveFeeConstantsBuilder
impl Unpin for SetAdaptiveFeeConstantsBuilder
impl UnwindSafe for SetAdaptiveFeeConstantsBuilder
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