Struct ClosePositionInstruction
pub struct ClosePositionInstruction {
pub instructions: Vec<Instruction>,
pub additional_signers: Vec<Keypair>,
pub quote: DecreaseLiquidityQuote,
pub fees_quote: CollectFeesQuote,
pub rewards_quote: CollectRewardsQuote,
}Expand description
Represents the instructions and quotes for closing a liquidity position.
This struct contains the instructions required to close a position, along with detailed information about the liquidity decrease, available fees to collect, and available rewards to collect.
Fields§
§instructions: Vec<Instruction>A vector of Instruction objects required to execute the position closure.
additional_signers: Vec<Keypair>A vector of Keypair objects representing additional signers required for the instructions.
quote: DecreaseLiquidityQuoteThe computed quote for decreasing liquidity, including liquidity delta, token estimates, and minimum tokens.
fees_quote: CollectFeesQuoteDetails of the fees available to collect from the position:
fee_owed_a- The amount of fees available to collect in token A.fee_owed_b- The amount of fees available to collect in token B.
rewards_quote: CollectRewardsQuoteDetails of the rewards available to collect from the position:
rewards- An array containing up to threeCollectRewardQuoteentries, one for each reward token.- Each entry includes
rewards_owed, the amount of the respective reward token available to collect.
- Each entry includes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClosePositionInstruction
impl RefUnwindSafe for ClosePositionInstruction
impl Send for ClosePositionInstruction
impl Sync for ClosePositionInstruction
impl Unpin for ClosePositionInstruction
impl UnwindSafe for ClosePositionInstruction
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