-
Notifications
You must be signed in to change notification settings - Fork 2
Switch to ref api to fetch whitelist tokens #25
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
Conversation
|
@race-of-sloths include |
|
@Megha-Dev-19 Thank you for your contribution! Your pull request is now a part of the Race of Sloths! Current status: executed
Your contribution is much appreciated with a final score of 3! @petersalomonsen received 25 Sloth Points for reviewing and scoring this pull request. Another weekly streak completed, well done @Megha-Dev-19! To keep your weekly streak and get another bonus make pull request next week! Looking forward to see you in race-of-sloths What is the Race of SlothsRace of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow For contributors:
For maintainers:
Feel free to check our website for additional details! Bot commands
|
| } | ||
|
|
||
| // Get whitelisted tokens from RPC | ||
| const whitelistTokensResp = await fetchFromRPC( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use https://www.npmjs.com/package/@near-js/jsonrpc-client
for such requests, but we can add that later.
petersalomonsen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@race-of-sloths score 3
Instead of hardcoding tokens list, switched to ref indexer to fetch the list of whitelisted tokens and also their prices.