stellar_withdraw_liquidity
Withdraw liquidity from a Stellar AMM pool by specifying the pool shares and minimum asset amounts to receive.
Instructions
Withdraw liquidity from a classic Stellar AMM liquidity pool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceAccount | Yes | Account withdrawing liquidity | |
| assetA | Yes | First asset of the liquidity pool | |
| assetB | Yes | Second asset of the liquidity pool | |
| amount | Yes | Amount of pool shares to withdraw | |
| minAmountA | Yes | Minimum amount of asset A to receive | |
| minAmountB | Yes | Minimum amount of asset B to receive | |
| fee | No | Liquidity pool fee in basis points (usually 30) |