add_pool
This entrypoint allows anyone to deploy a new own DEX pool.
QUIPU token should be approved (updated operators) before calling this method.
Call parameters
Parameters logically close to Standalone variant of Add new dex, but there is no "reserves
" field in tokens_info mapping (because invest performs at second step - start_dex) and some additional config parameters.
default_referral
- the address that would be the default referral at the new pool.managers
- a set of addresses that allowed to manipulate LP token metadata at the new pool.metadata
- metadata of deployed contract.token_metadata
- metadata of the LP token at the new pool.
Field | Type | Description |
---|---|---|
a_constant |
| constant "A" as represented as . |
input_tokens |
| sorted set of |
tokens_info |
| map of rates and precisions config |
default_referral |
| default referral that will be used in operations with the referral. |
managers |
| set of managers that allowed to change LP token metadata. |
metadata |
| contract metadata by TZIP-016 |
token_metadata |
| mapping each token metadata by TZIP-012 |
Last updated