dex-subgraph
dex-subgraph copied to clipboard
Add Deprecated List to rename Synthetix tokens
Current issue, not yet solved
See the FIXME. The project has a JSON with the config (address of the contract by network) and a const in assembly scrypt. It would be nice to find a way to load that file.
Contains
- Adds a list of deprecated tokens.
- When a token is deprecated, you need to provide the name and symbol
- When the subgraph wants to add one new token, it checks if it's in the list of deprecated token. If it's not, it loads the info from the ERC20, if it is, it uses the provided token information
Test
It has been tested in local/rinkeby/mainnet:

- Follow README and test locally
- Check https://thegraph.com/explorer/subgraph/gnosis/protocol-rinkeby
- Check https://thegraph.com/explorer/subgraph/gnosis/protocol