Skip to content

Token List is a specification for list of token metadata for FX Swap

Notifications You must be signed in to change notification settings

FunctionX-SG/FXSwap-TokenList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MarginX Token List

MarginX Token List is a specification for list of token metadata (e.g. address and decimals) that can be used by dApp interface.

This repository is a comprehensive collection of tokens on MarginX.

Token logos are stored according to their f(x) EVM address under the Tokens/ directory and the images are stored in the format <Token-Address>/logo.png.

To add a new token or edit token info, please follow the steps below and create a PR in the FXSwap-TokenList repository.

General Requirements

  1. Token should be verified on FX Explorer Mainnet or Testnet
  2. Token must be on the f(x) EVM

Adding Token to the Existing List

  1. Modify FXList.json to add an entry in the tokens field.
  • Example:
{
    "name": "Pundi X Token",
    "chainId": 530,
    "symbol": "PUNDIX",
    "decimals": 18,
    "address": "0xd567B3d7B8FE3C79a1AD8dA978812cfC4Fa05e75",
    "logoURI": "https://raw.githubusercontent.com/FunctionX-SG/FXSwap-TokenList/main/Tokens/0xd567B3d7B8FE3C79a1AD8dA978812cfC4Fa05e75/logo.png",
    "extensions": {
        "twitter": "https://twitter.com/PundiXLabs",
        "website": "https://pundix.com/"
    }
}
  1. The twitter field and website field within extensions are optional.

Adding Token Logo

  1. Create a new directory in Tokens\ directory, named using the checksum token address.
  2. Add token image as file named logo.png inside the directory.
  3. Image should not be larger than 20 KB.

About

Token List is a specification for list of token metadata for FX Swap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published