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

Support dynamic exchange additions - remove hardcoded list #23

Merged
merged 2 commits into from
Dec 18, 2019

Conversation

ianlapham
Copy link
Contributor

@ianlapham ianlapham commented Dec 17, 2019

Fix for #15

  • Currenlty we rely on a hardcoded list of exchanges to populate token specific fields like symbol, name and decimals
  • Use new graph features to "try/catch" with various ERC20 abis
  • General strategy is to try with standard ERC20 abi, if call is reverted try with variation that uses bytes

@davekaj
Copy link
Contributor

davekaj commented Dec 18, 2019

Looks great!

@davekaj davekaj merged commit 7c1ea71 into graphprotocol:master Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants