Type alias: SwapAmount
SwapAmount = {
amountInMaximum?:undefined;amountOutMinimum?:NumericAmount;exactIn:NumericAmount;exactOut?:undefined;priceLimit?:NumericAmount; } | {amountInMaximum?:NumericAmount;amountOutMinimum?:undefined;exactIn?:undefined;exactOut:NumericAmount;priceLimit?:NumericAmount; }
What a swap trades: exactly one of exactIn (sell this much of the input token) or exactOut
(receive this much of the output token), with that side's slippage bound and an optional
sqrt-price limit.
amount in maximum out minimum numeric exact price limit
Union Members
Type Literal
{ amountInMaximum?: undefined; amountOutMinimum?: NumericAmount; exactIn: NumericAmount; exactOut?: undefined; priceLimit?: NumericAmount; }
| Name | Type | Description |
|---|---|---|
amountInMaximum? | undefined | - |
amountOutMinimum? | NumericAmount | - |
exactIn | NumericAmount | - |
exactOut? | undefined | - |
priceLimit? | NumericAmount | Sqrt-price limit passed through to the chain as priceLimit; omitted when undefined. |
amount in maximum out minimum numeric exact price limit
Type Literal
{ amountInMaximum?: NumericAmount; amountOutMinimum?: undefined; exactIn?: undefined; exactOut: NumericAmount; priceLimit?: NumericAmount; }
| Name | Type | Description |
|---|---|---|
amountInMaximum? | NumericAmount | - |
amountOutMinimum? | undefined | - |
exactIn? | undefined | - |
exactOut | NumericAmount | - |
priceLimit? | NumericAmount | Sqrt-price limit passed through to the chain as priceLimit; omitted when undefined. |
amount in maximum numeric out minimum exact price limit