Mint
Uniswap V3 Action Plugin - Mint
Description
Creates a new position wrapped in a NFT
Call this when the pool does exist and is initialized. Note that if the pool is created but not initialized a method does not exist, i.e. the pool is assumed to be initialized.
Method
mint((address,address,uint24,int24,int24,uint256,uint256,uint256,uint256,address,uint256))
Input Parameters
Name | Plugin Type | Description |
---|---|---|
to |
| Non-fungible Position Manager Address |
Method Parameters
Name | Plugin Type | Description |
---|---|---|
params.tuple |
|
"Params.tuple" parameters
Name | Plugin Type | Required? | Description |
---|---|---|---|
token0 |
| Address of token0 | |
token1 |
| Address of token1 | |
fee |
| Fee of token0/token1 Pool | |
tickLower |
| ||
tickUpper |
| ||
amount0Desired |
| ||
amount1Desired |
| ||
amount0Min |
| ||
amount1Min |
| ||
recipient |
| ||
deadline |
|
Returned Values
Name | Plugin Type | Description |
---|---|---|
tokenID |
| TokenID of minted token |
liquidity |
| The new liquidity amount as a result of the increase |
amount0 |
| The amount of token0 to acheive resulting liquidity |
amount1 |
| The amount of token1 to acheive resulting liquidity |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Uniswap V3 Mint function here
Last updated