Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Only a stupid question... #30

Open
salahawk opened this issue Jul 11, 2022 · 2 comments
Open

Only a stupid question... #30

salahawk opened this issue Jul 11, 2022 · 2 comments

Comments

@salahawk
Copy link

I just tried to get token data from "@traderjoe-xyz/sdk"
When I tried using Fetcher.fetchTokenData(ChainId.AVALANCHE, Token1); it shows the following error:

"Unsupported getDefaultProvider network"

Were you able to help me how I can fix this issue?

I read source code of "joe-sdk" and I can see it's backed by @ethersproject
and the problem I found is it does not support Avalanche.

Any help/advice is appreciated!

@burgossrodrigo
Copy link

burgossrodrigo commented Jul 19, 2022

You need to change from getDefaultProvider to jsonRpcProvider because getDefaultProvider doesn't cover avalanche. Btw i think that this packcage as wrecked because they are returning contracts.

@salahawk
Copy link
Author

Thanks for your reply, @burgossrodrigo
Definitely agree with your idea.
And yes, the package is wrecked!
That's why I built the library myself and using the custom traderjoe-xyz/sdk for my project.

Thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants