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

Fix NEP-5 Tokens Not Displaying on Legacy Wallets #2630

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

jseagrave21
Copy link
Contributor

What current issue(s) from Trello/Github does this address?
#2575

What problem does this PR solve?
This PR bypasses a problem with neon-js (described in the referenced issue) and allows the token to be displayed correctly in the Activity tab.
This PR also fixes a problem where some NEP-5 token balances are not displayed.

How did you solve this problem?
For the first problem, if the original query getToken throws an error, we now query Dora to return the token symbol.
For the second problem, we first load all the tokens from Dora. Then we check the originally determined balance and check it against the balance from Dora. Any additional tokens are added to the balances property manually. I had to use this method because supplementing the token list with the results from Dora does not work. Several of the Flamingo tokens (e.g. fUSDT) break the code.

How did you make sure your solution works?
Live Testing. See screenshots below.

  1. Dashboard Before. Note there is no fUSDT displayed.
    Dashboard Before

  2. Dashboard After.
    Dashboard After

  3. Activity Before. Note there is no FLP-nNEO-fUSDT displayed.
    Activity Before

  4. Activity After.
    Activity After

Are there any special changes in the code that we should be aware of?
No

Is there anything else we should know?
No

@jseagrave21
Copy link
Contributor Author

Requesting a review. @melanke @raulduartep @comountainclimber

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.

1 participant