pickle-finance/pickle-ui

Wrong network warning on page load

Closed this issue · 2 comments

When being connected to a supported network, on page load you can see the warning that you're on an unsupported network.

@janklimo This problem stems from the generateUserModel() call in UserModelProvider. Specifically, the Aurora RPC provider (at https://mainnet.aurora.dev/) is very problematic in that I get blocked by a CORS error when it makes the call to the pfcore library to fetch users' Aurora balances, as shown below
image

My workaround to this problem (which is obviously not workable), is to VPN to another location to make the Aurora RPC work, at which point the error goes away (and Aurora balances are successfully fetched).
image

Not too sure what can be done on our end.

@larrythecucumber321 sorry if the description wasn't too clear. I was referring to the wrong empty/default state when loading the page. Here's what I see when I reload the page:

emptystate

This is before we load user model. Note that I'm on Ethereum so this is a matter of wrong default state.

@bcstryker might know what changed recently but we didn't have this in the original implementation of the callout card.