KyberNetwork / kyberswap-widgets

4 stars 15 forks source link

Balances not loading and preventing swap #6

Open foxdetective opened 1 year ago

foxdetective commented 1 year ago

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 commented 1 year ago

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

nhanth87 commented 1 year ago

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

nhanth87 commented 1 year ago

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