Fujicracy / fuji-v2

Cross-chain money market aggregator
https://fuji-v2-frontend.vercel.app
15 stars 10 forks source link

Bug: state after changing address #701

Open ferostabio opened 9 months ago

ferostabio commented 9 months ago

Mark reported the following bug:

Supply APY is incorrect on my positions page.

How to reproduce:

  1. login with Account A
  2. Switch to Account B on Metamask
  3. Click on My Positions Page
  4. Refresh the page (the new account is shown)
  5. Supply APY is incorrect (not showing)

And I experienced something similar.

  1. login with Account
  2. Disconnect through the account modal
  3. Instead of showing "connect wallet" on the center of the screen, it showed "no positions, borrow".

It seems that both after changing an address and disconnecting, the state is not updated properly.