pub struct HookConfig {
pub should_call_compute_dynamic_swap_fee: bool,
pub should_call_before_swap: bool,
pub should_call_after_swap: bool,
pub should_call_before_add_liquidity: bool,
pub should_call_after_add_liquidity: bool,
pub should_call_before_remove_liquidity: bool,
pub should_call_after_remove_liquidity: bool,
pub enable_hook_adjusted_amounts: bool,
}
Expand description
Hook configuration flags
Fields§
§should_call_compute_dynamic_swap_fee: bool
Whether to call compute dynamic swap fee
should_call_before_swap: bool
Whether to call before swap
should_call_after_swap: bool
Whether to call after swap
should_call_before_add_liquidity: bool
Whether to call before add liquidity
should_call_after_add_liquidity: bool
Whether to call after add liquidity
should_call_before_remove_liquidity: bool
Whether to call before remove liquidity
should_call_after_remove_liquidity: bool
Whether to call after remove liquidity
enable_hook_adjusted_amounts: bool
Whether to enable hook adjusted amounts
Trait Implementations§
Source§impl Clone for HookConfig
impl Clone for HookConfig
Source§fn clone(&self) -> HookConfig
fn clone(&self) -> HookConfig
Returns a duplicate 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 moreSource§impl Debug for HookConfig
impl Debug for HookConfig
Source§impl Default for HookConfig
impl Default for HookConfig
Source§fn default() -> HookConfig
fn default() -> HookConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for HookConfig
impl PartialEq for HookConfig
impl StructuralPartialEq for HookConfig
Auto Trait Implementations§
impl Freeze for HookConfig
impl RefUnwindSafe for HookConfig
impl Send for HookConfig
impl Sync for HookConfig
impl Unpin for HookConfig
impl UnwindSafe for HookConfig
Blanket Implementations§
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