web: DeFI - View position not available after staking

Overview

After staking in some vault and clicking “View Position”, DeFI overview doesn’t show the position.

Steps to reproduce:

  1. Stake some asset in DeFi vault
  2. Wait for Metamask confirmation
  3. On the last step of the modal, click “View Position”

Expected:

  • No full page reload is necessary for my position to appear
  • I can view my position, it is available as a card

Actual:

  • My position is not there
  • A full page reload is necessary for it to appear

References and additional details

Acceptance Criteria

As a user, my new/updated staking position should appear:

  • Overview card is updated to reflect the new/updated position
  • Earn row is updated to reflect the new/updated position
  • The deposit modal is updated, so that the amount is deducted from the amount available to deposit, and added to the amount available to unstake
  • Account balance is updated to reflect the new/updated position

Need By Date

No response

Screenshots/Mockups

No response

Ownership

  • If my bounty needs engineering or needs product I have added the respective labels on the right
  • As the sponsor of this bounty I will review the changes in a preview environment (ops/product) or review the PR (engineering)

Estimated effort

No response

Sponsor / Stakeholder

@gomesalexandre (gomes on Discord)

Bounty Hunters

  • Join our discord
  • Include an expected timeline for you to complete work in the work plan when you apply for this bounty!
  • Please refer to this link for some basic info
  • Please do not start work on this issue until you are approved in Gitcoin.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Card did not update automatically once selecting “view position”. Had to do a refresh to see the updated balance,

@0xdef1cafe saw 2116 is merged. position is there without doing a full reload. LGTM

Hey @gomesalexandre! sorry for the delay on this. But was able to stake (tried WETH in my case) ,clicked on 'View Position" but the card didn’t appear on the Overview page. Had to refresh the page for it to show up.