router.gno
Searches for the best route for a swap.
SwapRoute
Runs a swap through the route that offers the most favorable exchange rate.
Parameters
Name | Type | Description |
---|---|---|
| string | The path of the input token. |
| string | The path of the output token. |
| string | The amount of the specified token. |
| string | The type of the swap. |
| string | The route of the swap. |
| string | The share of each split of the route. |
| string | Limits the number of tokens while routing the swap. The minimum amount of tokens to receive for |
Return Values
Name | Type | Description |
---|---|---|
| string | The amount sent to the pool from the user (the input of the swap). |
| string | The amount sent to the user from the pool (the output of the swap). |
Last updated