divest

This entrypoint is designed to remove liquidity from a specific DEX pool according to current exchange rate.

Call parameters

type divest_param_t     is [@layout:comb] record [
  pool_id                 : nat;
  min_amounts_out         : map(token_pool_idx_t, nat);
  shares                  : nat; 
  deadline                : timestamp; 
  receiver                : option(address); 
]

Last updated