Skip to content

staking-BOOST vault deposit/withdrawal component issues #46

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

Closed
rossgalloway opened this issue Feb 24, 2025 · 13 comments
Closed

staking-BOOST vault deposit/withdrawal component issues #46

rossgalloway opened this issue Feb 24, 2025 · 13 comments

Comments

@rossgalloway
Copy link
Owner

rossgalloway commented Feb 24, 2025

What type of issue is this?

Bug Upgrade

What needs to be shipped?

Issue

Under the button on the Deposit/Withdrawal component when there is a "staking-BOOST" option, there is a button to toggle between "deposit only" and "deposit and stake". There are 2 main issues:

  1. The "deposit" language remains when the components switches to withdraw functionality, making it seem like the vault may be in "deposit only" mode.
  2. The styling of the button is unclear. Everywhere else, text in that location is informational (not a button) so it is easy to assume it isn't a button.

Fix

  • Update logic so that when the component is changed to the withdraw, the button text and function reflect the withdrawal action.
  • Make the button look more like a button (or move it).
  • Make sure the language and styling doesn't imply that the vault is in "deposit only" mode.

Other Notes

Images:

Image

Image

@rossgalloway rossgalloway moved this to FInalized in yShip Feb 24, 2025
@rossgalloway rossgalloway moved this from Finalized to Delivered to MOM in yShip Feb 25, 2025
@Majorfi
Copy link

Majorfi commented Feb 26, 2025

Fixed 1 with commit 0f74083

@rossgalloway
Copy link
Owner Author

Here is the direction I think we want to go based on discussions with other team members:

  • toggle button above button with text that says "deposit only" when off and "deposit and stake" when on, with an adjacent tooltip.
  • button text changes when toggle is switched.
  • It would also be good if the "To Vault" asset changed to the gauge asset when the button is toggled to "deposit and stake"
  • (optional) Adding an animation to the button text change was suggested as another queue to let the user know something changed. Fly in from the bottom was suggested.

Image

Image

@Majorfi
Copy link

Majorfi commented Mar 24, 2025

@rossgalloway let's use only one issue (duplicate with #22) 🙏

@rossgalloway
Copy link
Owner Author

will close #22

@Majorfi
Copy link

Majorfi commented Mar 27, 2025

This PR added the switch. One thing to keep in mind is that if you have no veYFI, the button to switch to deposit & stake will be disabled for veYFI (to avoid false advert)
Let us know!

@rossgalloway
Copy link
Owner Author

I like the styling. But I don't think the disabled button makes sense if the user doesn't have veYFI. They should still be able to deposit and stake because they do get the min boost, but I think we need to let them know what their boost is.

Ideally, we show them their added veYFI APR and boost # under the button. WDYT?

@rossgalloway
Copy link
Owner Author

When deposit and stake is selected, can the to vault box show the staked token (yg-yv-USDS-1 for example)?

Image

@Majorfi
Copy link

Majorfi commented Mar 28, 2025

I like the styling. But I don't think the disabled button makes sense if the user doesn't have veYFI. They should still be able to deposit and stake because they do get the min boost, but I think we need to let them know what their boost is.

Ok, let's change this
Let's do:

  • If no veYFI, display the min 6.40% instead of the range
  • Otherwise the range

@rossgalloway
Copy link
Owner Author

rossgalloway commented Mar 31, 2025

Ok, let's change this Let's do:

* If no veYFI, display the min 6.40% instead of the range

* Otherwise the range

Ok, yes that is better than the toggle being disabled.

What can we do about showing a user with veYFI what their actual rate is though? Shouldn't be too hard. I have code that calculates boost here: https://github.com/yearn/yearn-devdocs/blob/master/src/components/veYFI-calculator/calculations.ts . APR is just boost x min rewards right?

@Majorfi
Copy link

Majorfi commented Apr 3, 2025

@rossgalloway We are working on this, but could you move that to a sep issue for clarity? Thank you very much!

@rossgalloway
Copy link
Owner Author

New Issue is here: #60

@rossgalloway
Copy link
Owner Author

One minor change needed here. When depositing and staking, the "To Vault" box should show the staked gauge asset (ie yG-yvUSDS-1). When only depositing it should show the vault.

@rossgalloway rossgalloway moved this from Delivered to MOM to Needs Revision in yShip Apr 16, 2025
@rossgalloway rossgalloway moved this from In Progress - Needs Revision to In Final Review in yShip May 6, 2025
@rossgalloway
Copy link
Owner Author

completed

@github-project-automation github-project-automation bot moved this from In Final Review to Completed in yShip May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Completed
Development

No branches or pull requests

2 participants