SwapTo
Uniswap V2 - SwapTo
Description
Swaps on Uniswap V2 without slippage and with recipient
address
Method
swapTo_noSlippageProtection(uint256,bytes32,address,address[])
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| FCT Uniswap library |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
amount |
| Amount to use in the swap OR Amount to receive in the swap. This depends on the swap method |
method |
| Method string. In the FCT it will be a hashed value |
recipient |
| Address which recieves the swap tokens |
path |
| An array of token addresses. |
Returned Values
Name | Plugin Type | Description |
---|---|---|
amountIn |
| |
amountOut |
| |
tokenIn |
| |
tokenOut |
|
Example
Example with initParams
Example without initParams
Learn more
Learn more about Uniswap here
Last updated