How to Propose a Swappi Swap on MultiSig

Nima Pourjafar
2 min readMay 19, 2022

This tutorial will use a new DAPP on Conflux eSpace for MultiSig (much like Gnosis Safe)

We will be submitting a transaction to propose a swap of 100 CFX => USDT

  1. Click `Submit Transaction` to open the transaction submission modal. From there, click `Contract Interaction`. We will be interacting with the Swappi Liquidity Pool Contracts.

2. Enter the Swappi Router Contract Address (0x62b0873055bf896dd869e172119871ac24aea305). For the value, we will put the 100 CFX we want to swap. Write a short description for the transaction too.

3. You will be prompted to insert the ABI of the Router. MultiSig offers some common ABIs for popular contracts, and Swappi utilizes the UniswapRouter ABI. Click `Common ABIs` and select `UniswapRouter`

4. You will be greeted with a function dropdown after inserting the ABI. We will be using `swapExactETHForTokens`, so click that.

5. After clicking that, you will need to enter in the data for each of the arguments

amountOutMin — The minimum amount of output tokens that must be received for the transaction not to revert. This will depend on the current price of CFX.

path — An array of token addresses. We are using USDT and WCFX, so ours will be [0x14b2d3bc65e74dae1030eafd8ac30c533c976a9b, 0xfe97e85d13abd9c1c33384e796f10b73905637ce]

to — Destination address. We want our usdt to go to our contract so we’ll put it’s address in their

Deadline — Unix timestamp after which the transaction will revert. You can simply calculate this here

6. After confirming all your details, click `Next`. You will be greeted with an overview of the transaction you are about to propose. If all is good, click `Submit Transaction`. A popup will appear asking you to confirm submitting the transition (this will cost gas).

--

--