In the previous article, we learned how to deploy and transfer our token to another account on Kadena Testnet and Kaddex Devnet. This article will teach you how to create your liquidity pool on Kaddex Devnet.
Step 1: Select “Contracts” on the left menu. On the module explorer, search for exchange. Click the “View” button on kaddex.exchange contract.
Step 2: Under the Functions section, select the create-pair function.
Step 3: We will create a KDA/your token pair. Since the token id of KDA is coin, we need to input coin on the token0 field. Then, enter your token name in the token1 field. Remember to add the “free.” prefix. Hit the “Next” button afterward.
Step 4: Nothing special here. Input corresponding data, and keep clicking”Next“. Finally, press the “Submit” button.
Step 5: We have created our first token pair on Kaddex Devnet! You may try to use the get-pair function by yourself to verify whether the contract has added your token or not.
Step 6: Move to Kaddex swap on the Devnet. You may find out the link on Kaddex discord. Click the “+” button on the token you created. I made a minor mistake here. The demo token should be ETH, not BTC, in the picture below (I hope it does not matter, XD). REMEMBER TO SELECT KADDEX DEVNET CHAIN 0 ON THE X-Wallet.
Updated on 25th Oct 2022, you may need to unclick the “VERIFIED” button next to the “REWARDS” button to show your token.
Step 7: Move to the double-sided part. Enter the amount of KDA and the token you want to add to the liquidity pool. I will suggest adding all your tokens and most of your KDA tokens to the liquidity pool for testing purposes. After that, click the “Supply” button. REMEMBER TO LEAVE SOME KDA TO PAY THE GAS FEE. OTHERWISE, YOU HAVE TO OBTAIN SOME FROM THE FAUCET AGAIN.
Step 8: Confirm the transaction
We have created our first liquidity pool! You may now move to the swap page of the Kaddex swap and swap your token with 0.001 KDA (be careful of the slippage Tolerance).
The following article will teach you how to create our exchange using the cloned Kaddex swap from GitHub.
If you think this article is helpful, leave a comment below. 🙂
You may also sponsor this website by sending some KDA to this address: k:e95a044488f4b6ced42ab9be0268ffe530e47401b24b8c29bfeba5942e5da275.