pub struct IncreaseLiquidityInstruction {
pub quote: IncreaseLiquidityQuote,
pub instructions: Vec<Instruction>,
pub additional_signers: Vec<Keypair>,
}
Expand description
Represents the instructions and quote for increasing liquidity in a position.
This struct includes the necessary transaction instructions, as well as a detailed quote describing the liquidity increase.
Fields§
§quote: IncreaseLiquidityQuote
The computed quote for increasing liquidity, including:
liquidity_delta
- The change in liquidity.token_est_a
- The estimated amount of token A required.token_est_b
- The estimated amount of token B required.token_max_a
- The maximum allowable amount of token A based on slippage tolerance.token_max_b
- The maximum allowable amount of token B based on slippage tolerance.
instructions: Vec<Instruction>
A vector of Instruction
objects required to execute the liquidity increase.
additional_signers: Vec<Keypair>
A vector of Keypair
objects representing additional signers required for the instructions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IncreaseLiquidityInstruction
impl RefUnwindSafe for IncreaseLiquidityInstruction
impl Send for IncreaseLiquidityInstruction
impl Sync for IncreaseLiquidityInstruction
impl Unpin for IncreaseLiquidityInstruction
impl UnwindSafe for IncreaseLiquidityInstruction
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
§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