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

add minShares to vault withdrawals #477

Open
lbertenasco opened this issue Oct 20, 2021 · 14 comments
Open

add minShares to vault withdrawals #477

lbertenasco opened this issue Oct 20, 2021 · 14 comments

Comments

@lbertenasco
Copy link
Contributor

it's not the best UX when you desire to withdraw 100 shares that it will only consume 50.
should add minShares as a parameter and revert if it cannot fill the withdraw

@pandadefi
Copy link
Contributor

You end up spending a lot of gas and at the end it will revert, does that make sense?

@0xparashar
Copy link

Added changes here https://github.com/ankitiitb1069/yearn-vaults/tree/add-minshares-to-vault-withdrawal, can I raise a PR for this now?

@lbertenasco
Copy link
Contributor Author

You end up spending a lot of gas and at the end it will revert, does that make sense?

yes, because metamask will tell you it's a reverted tx, and you won't end up sending that tx at all.

also @ankitiitb1069 please add tests and submit a PR and we'll gladly review it :)

@parseb
Copy link

parseb commented Jan 18, 2022

@ankitiitb1069 did you submit a PR for this?

@pandadefi
Copy link
Contributor

pandadefi commented Jan 18, 2022

@parseb he didn't, do you want to take were he left and add tests?

@parseb
Copy link

parseb commented Jan 19, 2022

@pandadefi on it, if PR not linked in 48h, assume the worst.

@parseb
Copy link

parseb commented Jan 20, 2022

Spent hours trying to fix this.
Not the only one getting this error. (0 confirmations)
I'm also likely the worst person to try and solve it since I'm new to everything in this env.

image

@0xbok
Copy link

0xbok commented Jan 20, 2022

Hey @parseb, i'll try to give this a shot if you're okay?

@parseb
Copy link

parseb commented Jan 20, 2022

Hey @parseb, i'll try to give this a shot if you're okay?

yes. please do.

@0xbok
Copy link

0xbok commented Jan 22, 2022

@pandadefi, sent this PR #517.

@pandadefi
Copy link
Contributor

We are working on a new version of the vault that will not be based on this code. We aren't going to make a new release on top of that.

@0xbok
Copy link

0xbok commented Jan 22, 2022

got it, I'll close the PR.

@0xbok
Copy link

0xbok commented Jan 24, 2022

@pandadefi any help you need on the new version of vaults?

@pandadefi
Copy link
Contributor

We are still in the planning phase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants