start_dex

This entrypoint allows deployer finish setup of a new DEX pool.

Deployed pool searched by sender address (deployer) and passed to call tokens of token_t type.

Underlying tokens should be approved (updated operators) before calling this method.

Call parameters

FieldTypeDescription

-

start_dex_param_t

mapping of token index in pool to token type and amount values.

type input_t_v_t        is [@layout:comb] record [
  token                   : token_t;
  value                   : nat;
]

type start_dex_param_t  is map(nat, input_t_v_t) 

This contract method is called only by deployer that called add_pool.

Last updated