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