This repo contains a list of ERC20 tokens for which Angle-related front-end applications like Merkl or Angle Protocol app can display logos and essential information.
All tokens are listed in ERC20_LIST.json
.
To add a token to the token list:
src/assets/tokens
a svg for the token logo with as a name for the file: tokenSymbol.svg
(e.g for CRV: CRV.svg
)ERC20_LIST.json
file with the token info in the place of the json file that corresponds to the chain on which this token exists:
hasPermit
and useInSwap
options to false "0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82": {
"address": "0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",
"name": "PancakeSwap Token",
"decimals": 18,
"symbol": "CAKE",
"hasPermit": false,
"useInSwap": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/cake.svg"
}
.json
Token ListThe type for the tokens in the list is exactly as follows:
interface TokenInfo {
readonly name: string;
readonly address: string;
readonly decimals: number;
readonly symbol: string;
readonly isSanToken: boolean;
readonly useInSwap?: boolean;
readonly hasPermit?: boolean;
readonly permitVersion?: string;
readonly logoURI?: string;
readonly tags?: string[];
readonly description?: string;
}
SVG is a vectorial format and is the most lightweight format, except in two situations:
In these two situations, you should convert the file into JPG or into PNG if it needs to support transparency.