Question

When I see values I don't expect / don't see values I expect, how do I debug Sandwich?

Answer

Sandwich uses WebSockets and rest requests to retrieve data on your accounts from the exchange. If Sandwich cannot connect to the exchange for any reason, or if the connection is unstable, your Balances may not load, or may become outdated, or you may see values different to those you expect. 

Sandwich uses WebSockets and rest requests to retrieve data on your accounts from the exchange. If Sandwich cannot connect to the exchange for any reason, or if the connection is unstable, your Balances may not load, or may become outdated, or you may see values different to those you expect. 

If you see this happen, there are a few things you can try to identify the cause of the problem and/or resolve it:

  • check the Internet Health Monitor to ensure you have a strong, stable internet connection
  • clear any filters that are applied in the tabs you are trying to view
  • check the logs for CurrencyConverter error messages (Sandwich may not be able to convert the relevant currency and converted values not showing)
  • check the WebSocket summary to see if all necessary WebSockets are connected & active
  • reload the account(s) that you are experiencing issue(s) with