-
Notifications
You must be signed in to change notification settings - Fork 69
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
Require shares > 0
upon supply/withdraw/borrow/repay?
#155
Comments
From @makcandrov. |
Note that this is fixed by #194 |
The problem is symmetric though: do we want to revert when the corresponding |
Good question |
It's not exactly symmetric: we don't care if the users receive zero tokens, as long as their shares decrease correctly (so that they can't withdraw tokens without updating their position) |
With #248 being merged, I think this issue should be reopened, with new edge cases:
|
Note that:
2 guarantees that only your first example is possible in practice, right? |
I agree with @Rubilmax and also the ratio shares / asset is starting at a high value ( |
After looking at the code, it happens that we only use |
Indeed, the roundings seem to always go towards the correct side. Mb, this issue can remain closed. |
Should we prevent supplying
amount
if the number of shares is 0?Originally posted by @MerlinEgalite in #123 (comment)
From @makcandrov's comment.
The text was updated successfully, but these errors were encountered: