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.
- Modify
FXList.json
to add an entry in thetokens
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/"
}
}
- The
twitter
field andwebsite
field withinextensions
are optional.
- Create a new directory in
Tokens\
directory, named using the checksum token address. - Add token image as file named logo.png inside the directory.
- Image should not be larger than 20 KB.