pub struct SwapStep {
pub sqrt_ratio_next_x32: u64,
pub amount_in: u64,
pub amount_out: u64,
pub fee_amount: u64,
}Expand description
Result of a swap step
Fields
sqrt_ratio_next_x32: u64The price after swapping the amount in/out, not to exceed the price target
amount_in: u64The amount to be swapped in, of either token0 or token1, based on the direction of the swap
amount_out: u64The amount to be received, of either token0 or token1, based on the direction of the swap
fee_amount: u64The amount of input that will be taken as a fee
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SwapStep
impl Send for SwapStep
impl Sync for SwapStep
impl Unpin for SwapStep
impl UnwindSafe for SwapStep
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more