ExactOutputSlim
Inherits: Payment, IExactOutputSlim
Functions
maverickV2SwapCallback
Callback function called by Maverick V2 pools when swapping tokens.
Parameters
Name | Type | Description |
---|---|---|
|
| The input token. |
|
| The amount to pay. |
|
| |
|
| Additional data. |
exactOutputSingleMinimal
Perform a swap with an exact output amount.
Parameters
Name | Type | Description |
---|---|---|
|
| The recipient of the swapped tokens. |
|
| The MaverickV2 pool to use for the swap. |
|
| Whether token A is the input token. |
|
| The exact output amount. |
|
| The tick limit for the swap. |
Returns
Name | Type | Description |
---|---|---|
|
| The input amount required to achieve the exact output. |
|
| The actual output amount received from the swap. |
_exactOutputSingleWithTickCheck
Perform an exact output single swap with tick limit validation.
Parameters
Name | Type | Description |
---|---|---|
|
| The MaverickV2 pool to use for the swap. |
|
| The recipient of the swapped tokens. |
|
| The exact output amount. |
|
| Whether token A is the input token. |
|
| The tick limit for the swap. |
Returns
Name | Type | Description |
---|---|---|
|
| The input amount required to achieve the exact output. |
|
| The actual output amount received from the swap. |
Last updated