pub struct IncreaseLpPositionQuoteArgs {
pub collateral_a: u64,
pub collateral_b: u64,
pub borrow_a: u64,
pub borrow_b: u64,
pub protocol_fee_rate: u16,
pub protocol_fee_rate_on_collateral: u16,
pub swap_fee_rate: u16,
pub sqrt_price: u128,
pub tick_lower_index: i32,
pub tick_upper_index: i32,
pub max_amount_slippage: u32,
pub liquidation_threshold: u32,
}Fields§
§collateral_a: u64Collateral in token A or COMPUTED_AMOUNT.
collateral_b: u64Collateral in token B or COMPUTED_AMOUNT.
borrow_a: u64Amount to borrow in token A. Must be set to COMPUTED_AMOUNT if collateral_a is COMPUTED_AMOUNT.
borrow_b: u64Amount to borrow in token B. Must be set to COMPUTED_AMOUNT if collateral_b is COMPUTED_AMOUNT.
protocol_fee_rate: u16Protocol fee rate from a market account represented as hundredths of a basis point (0.01% = 100).
protocol_fee_rate_on_collateral: u16Protocol fee rate from a market account represented as hundredths of a basis point (0.01% = 100).
swap_fee_rate: u16The swap fee rate of a pool denominated in 1e6.
sqrt_price: u128Current sqrt price.
tick_lower_index: i32Position lower tick index.
tick_upper_index: i32Position upper tick index.
max_amount_slippage: u32Maximum slippage of the position total amount represented as hundredths of a basis point (0.01% = 100).
liquidation_threshold: u32The liquidation threshold of the market.
Trait Implementations§
Source§impl Clone for IncreaseLpPositionQuoteArgs
impl Clone for IncreaseLpPositionQuoteArgs
Source§fn clone(&self) -> IncreaseLpPositionQuoteArgs
fn clone(&self) -> IncreaseLpPositionQuoteArgs
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 IncreaseLpPositionQuoteArgs
impl Debug for IncreaseLpPositionQuoteArgs
impl Copy for IncreaseLpPositionQuoteArgs
impl StructuralPartialEq for IncreaseLpPositionQuoteArgs
Auto Trait Implementations§
impl Freeze for IncreaseLpPositionQuoteArgs
impl RefUnwindSafe for IncreaseLpPositionQuoteArgs
impl Send for IncreaseLpPositionQuoteArgs
impl Sync for IncreaseLpPositionQuoteArgs
impl Unpin for IncreaseLpPositionQuoteArgs
impl UnwindSafe for IncreaseLpPositionQuoteArgs
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