Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readme to add a token #101

Merged
merged 2 commits into from
Sep 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading