dex-subgraph icon indicating copy to clipboard operation
dex-subgraph copied to clipboard

Add Deprecated List to rename Synthetix tokens

Open anxolin opened this issue 5 years ago • 0 comments

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: Screenshot at Jul 02 23-08-40

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

anxolin avatar Jul 03 '20 07:07 anxolin