pub struct SwapState {
    pub amount_specified_remaining: i64,
    pub amount_calculated: i64,
    pub sqrt_price_x32: u64,
    pub tick: i32,
    pub fee_growth_global_x32: u64,
    pub protocol_fee: u64,
    pub liquidity: u64,
}

Fields

amount_specified_remaining: i64amount_calculated: i64sqrt_price_x32: u64tick: i32fee_growth_global_x32: u64protocol_fee: u64liquidity: u64

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.