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

Additional UserProxy failed withdraw tests #182

Open
jrhea opened this issue Apr 21, 2021 · 0 comments
Open

Additional UserProxy failed withdraw tests #182

jrhea opened this issue Apr 21, 2021 · 0 comments

Comments

@jrhea
Copy link
Contributor

jrhea commented Apr 21, 2021

In UserProxy.sol:

this require:

require((wethReceivedPt + wethReceivedYt != 0), "Failed withdraw");

is going tobe changed to something like:

require((wethReceivedPt != 0 ) && (_amountPT != 0), "Rugged");
require((wethReceivedYt != 0 ) && (_amountYT != 0), "No yield accrued");

Tests will need to be written for this.

@jrhea jrhea changed the title Proxy failed withdraw tests Additional UserProxy failed withdraw tests Apr 21, 2021
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

No branches or pull requests

1 participant