List Custom Tokens on QiSwap
First, we'll start with creating the QRC20 token, we're using the openzeppelin ERC20 template for this.
- Create a dir called "token" and go inside of it
- Clone OpenZeppelin contracts from Github: git clone https://github.com/OpenZeppelin/openzeppelin-contracts.git --branch v3.1.0 --single-branch
-
Next, we create a basic token contract as such:
-
Make changes as you wish. Supply, name, ticker, decimals are all options to change in the contract.
- Install solidity 0.6x (Optional, you can use https://remix.ethereum.org/ )
-
When finished, compile the contract using solc
like this: solc --hashes --abi --bin --allow-paths openzeppelin-contracts --evm-version constantinople token.sol
-
Copy the bytecode, look for it where it says "token.sol", or whatever name you've chosen for the token
- Here we can see it in the sample token "QSW.sol"

- Open Qtum-qt and paste the bytecode in "SmartContracts - Create"

- Click on "create contract"

- Contract has been created and deployed

- Contract is now confirmed and can be viewed in the block explorer



- Add your token to QiSwap. Click on the token dropdown menu and paste the contract address


- We can now see QSW available for Swapping

- Add the token to the wallet used to create the contract


- Send some funds from the contract wallet to your QiSwap wallet


- Authorize your token on QiWallet

- Add liquidity, the as you're the first liquidity provider, you will determine the initial swap price.


- Liquidity has been added and you can now swap your token for Qtum!. Add liquidity for other pairs to offer more options for traders.
