AddLiquidityTo
Uniswap V2 - AddLiquidityTo
Description
Add Liquidity on V2 Pool without minAmount protection and can set recipient address, which receives LP tokens.
Method
addLiquidityTo_noMinProtection(bytes32,address,address,uint256,uint256,address)
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| FCT Uniswap library |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
method |
| Method string. In the FCT it will be a hashed value |
tokenA |
| TokenA that will be added to LP |
tokenB |
| TokenB that will be added to LP |
amountADesired |
| TokenA amount that will be added to LP |
amountBDesired |
| TokenB amount that will be added to LP |
to |
| LP token receiver address |
Returned Values
Name | Plugin Type | Description |
---|---|---|
amountA |
| |
amountB |
| |
liquidity |
|
Example
Example with initParams
Example without initParams
Learn more
Learn more about Uniswap here
Last updated