Enum clmm_cli::app::PositionCommands
source · [−]pub enum PositionCommands {
CollectRewarder {
mint: Pubkey,
rewarder_index: u8,
},
Open {
clmmpool: Pubkey,
tick_lower_index: i32,
tick_upper_index: i32,
},
Remove {
mint: Pubkey,
},
Decrease {
mint: Pubkey,
amount_a: f64,
amount_b: f64,
liquidity: u128,
slid: f64,
},
Increase {
mint: Pubkey,
amount_a: f64,
amount_b: f64,
slid: f64,
},
IncreaseWithFixedToken {
mint: Pubkey,
amount: f64,
slid: f64,
is_a_fixed: Option<bool>,
},
List {
clmmpool: Option<Pubkey>,
auth: Option<Pubkey>,
},
Info {
mint: Pubkey,
},
CollectFee {
mint: Pubkey,
},
}Variants
CollectRewarder
Fields
mint: Pubkeyprovider the position mint address
rewarder_index: u8rewarder index for position rewarders
collect rewarder
Open
Fields
clmmpool: Pubkeypool key
tick_lower_index: i32tick lower index
tick_upper_index: i32tick upper index
open a new position
Remove
Fields
mint: Pubkeyremove a position
provider the position mint address
Decrease
Fields
mint: Pubkeyprovider the position mint key
amount_a: f64The token amount a
amount_b: f64The token amount b
liquidity: u128The liquidity
slid: f64The slid rate (default 0.01)
decrease liquidity to position
Increase
Fields
mint: Pubkeyprovider the position mint key
amount_a: f64The token amount a
amount_b: f64The token amount b
slid: f64The slid rate (default 0.01)
increase liquidity to position
IncreaseWithFixedToken
List
get position list
Info
Fields
mint: Pubkeyprovider the position mint address to retreive the position details
get position info
CollectFee
Fields
mint: Pubkeyprovider the position mint address
position owner to collect the fee the position owned
Trait Implementations
sourceimpl FromArgMatches for PositionCommands
impl FromArgMatches for PositionCommands
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches to self.
sourcefn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches to self.
sourceimpl Subcommand for PositionCommands
impl Subcommand for PositionCommands
sourcefn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether Self can parse a specific subcommand
Auto Trait Implementations
impl RefUnwindSafe for PositionCommands
impl Send for PositionCommands
impl Sync for PositionCommands
impl Unpin for PositionCommands
impl UnwindSafe for PositionCommands
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more