Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native - show maturing and available balance for unstake #679

Open
donnyquixotic opened this issue Nov 18, 2023 · 0 comments
Open

Native - show maturing and available balance for unstake #679

donnyquixotic opened this issue Nov 18, 2023 · 0 comments
Labels
🐛 Bug Something isn't working

Comments

@donnyquixotic
Copy link
Contributor

donnyquixotic commented Nov 18, 2023

Describe the bug
For staking on the native side, we notify user in the form that deposits will be locked for 4 days but we display the full deposited amount in the unstake form regardless of whether the amount is available for withdraw ('matured'). This leads to confusion as users may attempt to withdraw receiving an 'insufficient available rex' error without explanation.

To Reproduce
Steps to reproduce the behavior:

  1. Sign in on native for account with no amount staked (or full staked amount still 'maturing')
  2. Stake if necessary
  3. Navigate to 'unstake' tab
  4. See full deposited amount
  5. Attempt to unstake any portion of deposited amount
  6. See error

Expected behavior

  • Should display 'maturing' amount
  • Should display 'matured'/'available' amount for unstaking (which is used to validate input)
  • If no balance is available for withdraw, input and button should be disabled

Screenshots
Current:
image
Fix:
image

image

Additional Context

  • You can view the maturing/available distinction in OBE by connecting wallet and viewing 'resources' under the 'wallet' tab
@donnyquixotic donnyquixotic added the 🐛 Bug Something isn't working label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@donnyquixotic and others