Skip to content

elaphantapp/TokSwap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

TokSwap Guide

Introduction

Welcome to an automated on-chain marketplace based entirely on smart contracts. Our goal is to help developers and users achieve a fast value exchange in the world of Elastos.

Since this project is cloned from the Uniswap V2 code, you can read about it on the official Uniswap website or other related introductory articles on the web, TokSwap is identical to Uniswap V2 from an operational point of view.

Reference

Uniswap Doc: https://uniswap.org/docs/v2/

Contracts

ELA Mainnet

Heco Testnet

  • UniswapV2Factory: 0x52354Bd079373fB96fCA3CFE3cD5a0319bB3c169
  • HashCode: 0x77d35d84db83d346d845a23b35a87b92e27c84e765e40c1ea3baaf83c1c6ad3d
  • wHT: 0x45b2165cc04673bb711605c43a7d1279ff838477
  • UniswapV2Router02: 0xf545102a8daa89a79ba8586e2ee278b82c48ae86

Heco Mainnet

  • UniswapV2Factory: 0xEcC694Bf665E1ba7fb1546ae40b8FaD6f3462B28
  • HashCode: 0x77d35d84db83d346d845a23b35a87b92e27c84e765e40c1ea3baaf83c1c6ad3d
  • wHT: 0x45b2165cc04673bb711605c43a7d1279ff838477
  • UniswapV2Router02: 0x64967f9889a14a710c4f6d21f3a2155035310048

Roles

It has two roles: Trader and Market maker.

Trader

You can trade Tokens in TokSwap and anyone who engages in buying or selling can be considered a trader.

Market maker

Those who offer trading pairs in the TokSwap pool will also share a 0.3% commission on the amount traded. Market makers who provide liquidity will receive LP Token as proof.

How to add LP token to your wallet

You can find your pool information in info.tokswap.net, at the bottom of the page you can see the contract address of the pool, it is the contract address of your LP Token, when you add a custom token in your wallet, you can paste this address to import it to your wallet..

How to add your token to TokSwap

Here's our Token List. https://tokswap.net/tokswap_tokenlist.json

There are two ways to add your token to TokSwap.

  1. Submit an issue to this repository and provide your token's description information, you can see the format in the above tokenlist.

  2. Configure your token information in Cryptoname. This is done as follows.

Create an extended key called "elatoken" in Cryptoname, and convert your token from json to string, fill in the "value" field, and submit it. Then you can enter your Crytptoname in TokSwap and you're ready to go.

Raw Token Info
{
    "chainId": 20,
    "address": "0x677d40ccc1c1fc3176e21844a6c041dbd106e6cd",
    "name": "Elaphant",
    "symbol": "ELP",
    "decimals": 8,
    "logoURI": "https://elaphant.app/favicon-32x32.png"
}
Online Conversion Tool

https://tools.knowledgewalls.com/jsontostring

After conversion
"{\"chainId\":20,\"address\":\"0x677d40ccc1c1fc3176e21844a6c041dbd106e6cd\",\"name\":\"Elaphant\",\"symbol\":\"ELP\",\"decimals\": 8,\"logoURI\":\"https:\/\/elaphant.app\/favicon-32x32.png\"}"
Examples of "Elaphant"

https://elaphant.elastos.name/elatoken

Releases

No releases published

Packages

 
 
 

Contributors