-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comments
Fixed 1 with commit 0f74083 |
Here is the direction I think we want to go based on discussions with other team members:
|
@rossgalloway let's use only one issue (duplicate with #22) 🙏 |
will close #22 |
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) |
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? |
Ok, let's change this
|
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? |
@rossgalloway We are working on this, but could you move that to a sep issue for clarity? Thank you very much! |
New Issue is here: #60 |
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. |
completed |
Uh oh!
There was an error while loading. Please reload this page.
What type of issue is this?
BugUpgradeWhat 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:
The "deposit" language remains when the components switches to withdraw functionality, making it seem like the vault may be in "deposit only" mode.Fix
Update logic so that when the component is changed to the withdraw, the button text and function reflect the withdrawal action.Other Notes
Images:
The text was updated successfully, but these errors were encountered: