Collect
Uniswap V3 Action Plugin - Collect
Description
Collects up to a maximum amount of fees owed to a specific position to the recipient
Method
collect((uint256,address,uint128,uint128))
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 |
---|---|---|---|
tokenId |
| The ID of the token | |
recipient |
| Address which receives the owed tokens | |
amount0Max |
| Max amount of token0 that can be collected. Default: Max | |
amount1Max |
| Max amount of token1 that can be collected. Default: Max |
Returned Values
Name | Plugin Type | Description |
---|---|---|
amount0 |
| The amount of fees collected in token0 |
amount1 |
| The amount of fees collected in token1 |
Example
Example with initParams
Example without initParams
Learn more
Learn more about Uniswap Collect function here
Last updated