Following up on the QIAIR airdrop, we have now received news from Slowmist and the Swap contract is secure and ready to go. This means that it’s time to begin swapping your QIAIR for QI!
There’s a few steps to be performed here but it’s not too complex:
Launch your Qtum Core wallet and go to QRC Tokens -> click on the ‘+’ sign to add a new token. Then, paste the QIAIR contract address which is 60f33e17d8d2dba280cf85b6c35880dedd8ed728 You can also verify this address here: https://learn.qiswap.com/qiswap-airdrop-overview
Select the wallet address which contains some QTUM as you’ll need to pay for the gas fees for swapping the tokens
Click on confirm, this will add the QIAIR token
Next, we need to repeat these same steps for the QI token, only difference now is that we have to add the QI token contract address which is 54fefdb5b31164f66ddb68becd7bdd864cacd65b You can also verify it here: https://learn.qiswap.com/qiswap-airdrop-overview
Time to swap the tokens, first, we'll need to approve the swap contract to transfer QIAIR. From the Qtum-QT wallet, do this:
Go to Smart Contracts > Send To
On the screen that shows up, go to contract address and paste 60f33e17d8d2dba280cf85b6c35880dedd8ed728 this is the QIAIR contract address
Paste the QIAIR ABI in the ABI section, we've uploaded the ABI in text file for your convenience here:
The "Function" section will show up now, select "approve" from the dropdown list
Paste the swap contract address in "address spender" d23a0d0acbeb4b6f0f7c05c1c861625bccaaeac4
In unint256 amount enter 100000000000000000000000000
Last but not least, set the Sender Address to the address in your wallet that has the QIAIR you wish to swap for QI
Send the transaction and wait for it to be mined (needs to have at least 1 confirmation on blockchain).
Clear contract Send to
Paste the Swap contract in the contract address: d23a0d0acbeb4b6f0f7c05c1c861625bccaaeac4
Paste the swap contract ABI you can copy from here:
Make sure that "exchange" is selected in the function section
Make sure that the sender contract address is the one holding QIAIR
Send and wait for it to be mined, if everything went well, the QI will show up on your wallet and QIAIR will be sent to the contract
You now have swapped your QIAIR for QI succesfully !
NOTE: PLEASE WAIT UNTIL EACH TRANSACTION IS CONFIRMED BEFORE PERFORMING THE NEXT OPERATION
You can also swap QIAIR for QI using the command line and it's actually easier and faster than doing it via GUI, here's how:
Make sure to have QIAIR on your wallet
Make sure to have QTUM on your wallet to pay for the tx and gas fees
Perform contract authorization:
qtum-cli sendtocontract 60f33e17d8d2dba280cf85b6c35880dedd8ed728 095ea7b3000000000000000000000000d23a0d0acbeb4b6f0f7c05c1c861625bccaaeac400000000000000000000000000000000000000000052B7D2DCC80CD2E4000000 0 250000 0.0000004 qiairwalletaddress
Wait for the tx to be mined and then perform the SWAP:
qtum-cli sendtocontract d23a0d0acbeb4b6f0f7c05c1c861625bccaaeac4 d2f7265a 0 250000 0.0000004 qiairwalletaddress
The QI tokens will show on your wallet once the next block is mined.
Note: Remember to replace 'qiairwalletaddress' for the address which holds QIAIR on your wallet