Skip to content

Commit

Permalink
readme to add a token (#101)
Browse files Browse the repository at this point in the history
* readme to add a token

* update readme
  • Loading branch information
sogipec authored Sep 19, 2023
1 parent 21868b6 commit 015aeb0
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
# Angle Protocol ERC20 List
# Angle ERC20 List

[![Styled With Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io/)

This repo contains a list of ERC20 tokens for which Angle-related front-end applications like [Merkl](https://merkl.angle.money) or [Angle Protocol app](https://app.angle.money) can display logos and essential information.

## Add a token to the list

All tokens are listed in `ERC20_LIST.json`.

To add a token to the token list:

- Add in `src/assets/tokens` a svg for the token logo with as a name for the file: `tokenSymbol.svg` (e.g for CRV: `CRV.svg`)
- Update the `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:
- Make sure that the token address is checksummed
- Let the `hasPermit` and `useInSwap` options to false
- You can use the following model and replace with the information relevant to the token:
```
"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 List

All tokens are listed in `ERC20_LIST.json` and should be typed as follows:
The type for the tokens in the list is exactly as follows:

```
interface TokenInfo {
Expand All @@ -21,7 +46,3 @@ interface TokenInfo {
readonly description?: string;
}
```

## [WIP] Angle ERC20 list

Create npm package to handle Angle ERC20 list accross different chains.

0 comments on commit 015aeb0

Please sign in to comment.