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

Balances not loading and preventing swap #6

Open
foxdetective opened this issue Apr 29, 2023 · 4 comments
Open

Balances not loading and preventing swap #6

foxdetective opened this issue Apr 29, 2023 · 4 comments

Comments

@foxdetective
Copy link

For some reason wallet balance inside the widget is not loading and it is preventing the swap.

-Connecting injected wallet works and loads balance successfully.
-Widget is able to calculate best route and prices

But wallet balance in widget shows 0 and does not allow us to swap.

We see this in console

Failed to load resource: the server responded with a status of 400 ()
agregator-api.kyberswap.com/ethereum/api/v1/routes?

Do we need to change this api to a cronos api?
If so, where can this be changed or what could be this issue.
Thanks.
swap

@foxdetective
Copy link
Author

@viet-nv sorry to bother, would you have any tips on this? Thanks

@nhanth87
Copy link

hi @foxdetective ,
can you capture the dump from injected from your browser

@nhanth87
Copy link

widget use the provider returned by wallet (metamask or browser plugin wallet like c98, walletConnect....) so the network is dynamic and not hardcoded

please check if you use walletConnect/c98 or metamask

@kang5647
Copy link

i also face the same issue, yesterday it still works fine. But today the balance in my wallet is no longer reflected in the widget. And the aggregator API from kyberswap does not work as well.

image

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

No branches or pull requests

4 participants
@nhanth87 @kang5647 @foxdetective and others