divest
This entrypoint is designed to remove liquidity from a specific DEX pool according to current exchange rate.
Call parameters
Field | Type | Description |
---|---|---|
pool_id |
| pool identifier. |
min_amounts_out |
| min amount of tokens to be received. NOTE: must be provided all indexes of tokens |
shares |
| amount of LP token to be burn. |
deadline |
| dealine of current operation. |
receiver |
| optional, address of the receiver of the LP tokens. If not provided the |
Last updated