Quipuswap
Search
K

add_pool

This entrypoint allows admin creating a new DEX pool.
Underlying tokens should be approved (updated operators) before calling this method.

Call parameters

Field
Type
Description
a_constant
nat
"A" constant
input_tokens
set(token_t)
set of tokens inside the future pool (from 2 to 4 entries)
tokens_info
map(token_pool_idx_t, token_info_t)
map of rates config and amount of initial pool reserves
type init_param_t is [@layout:comb] record [
a_constant : nat;
input_tokens : set(token_t);
tokens_info : map(token_pool_idx_t, token_info_t);
]
This contract method is called only by admin of that contract.