divest_imbalanced
This entrypoint is designed to remove liquidity to receive specific underlying assets from the DEX pool.
Call parameters
Field | Type | Description |
---|---|---|
pool_id |
| pool identifier. |
amounts_out |
| amount of tokens to be received. NOTE: must be provided at least one of indexes of tokens |
max_shares |
| maximum amount of LP tokens to be burnt. |
deadline |
| dealine of current operation. |
receiver |
| optional, address of the receiver of the LP tokens. If not provided the |
referral |
| optional, address of the referral of the current operation. If not provided the |
Last updated