tapp_remove_multiple_amm_liquidity
Remove liquidity from multiple AMM positions on Tapp Exchange by specifying pool ID, position addresses, share tokens to burn, and minimum token amounts.
Instructions
Remove liquidity from multiple AMM positions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
poolId | Yes | The ID of the pool | |
positions | Yes | An array of position objects |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"poolId": {
"description": "The ID of the pool",
"type": "string"
},
"positions": {
"description": "An array of position objects",
"items": {
"additionalProperties": false,
"properties": {
"minAmount0": {
"description": "Minimum amount token0",
"type": "number"
},
"minAmount1": {
"description": "Minimum amount token1",
"type": "number"
},
"mintedShare": {
"description": "The amount of share tokens to burn",
"type": "number"
},
"positionAddr": {
"description": "The address of the liquidity position",
"type": "string"
}
},
"required": [
"positionAddr",
"mintedShare",
"minAmount0",
"minAmount1"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"poolId",
"positions"
],
"type": "object"
}