Search…
Create a New Pair
A pre-stored pair is used in this procedure. Token contract should be instantiated in advance.
The Factory JSON parameter for instantiation is below:
1
{
2
"pair_code_id": 1,
3
"pair_code_hash": "<HASH>",
4
"token_code_id": 2,
5
"token_code_hash": "<HASH>",
6
"init_hook": { // optional
7
"msg": "base64_encoded_json_data",
8
"contract_addr": "secret...",
9
"callback_code_hash": "<HASH>"
10
}
11
}
Copied!
Copy link