pub struct OpenMakerParams {
pub margin: f64,
pub price_lower: f64,
pub price_upper: f64,
pub liquidity: u128,
pub max_amt0_in: u128,
pub max_amt1_in: u128,
}Expand description
Client-facing parameters for opening a maker (LP) position.
The SDK converts these to contract types automatically:
margin→ scaled to 6 decimalsprice_lower/price_upper→ converted to ticks
Fields§
§margin: f64Margin in USDC (e.g. 1000.0).
price_lower: f64Lower bound of the price range.
price_upper: f64Upper bound of the price range.
liquidity: u128Liquidity amount to provide.
max_amt0_in: u128Maximum amount of token0 willing to deposit.
max_amt1_in: u128Maximum amount of token1 willing to deposit.
Trait Implementations§
Source§impl Clone for OpenMakerParams
impl Clone for OpenMakerParams
Source§fn clone(&self) -> OpenMakerParams
fn clone(&self) -> OpenMakerParams
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 OpenMakerParams
impl Debug for OpenMakerParams
Source§impl PartialEq for OpenMakerParams
impl PartialEq for OpenMakerParams
impl Copy for OpenMakerParams
impl StructuralPartialEq for OpenMakerParams
Auto Trait Implementations§
impl Freeze for OpenMakerParams
impl RefUnwindSafe for OpenMakerParams
impl Send for OpenMakerParams
impl Sync for OpenMakerParams
impl Unpin for OpenMakerParams
impl UnsafeUnpin for OpenMakerParams
impl UnwindSafe for OpenMakerParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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