-
Notifications
You must be signed in to change notification settings - Fork 66
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
Should we revert on zero input #409
Comments
Note that an other possibility (other than keeping the current code) would be to no longer revert on zero input. NB: it gives a simple way to accrueInterest (after #405) |
For exemple ERC20 are not supposed to revert on transfer zero
|
After thinking about it, I don't think that we should revert. I don't see why we should revert on supplying a >0 amount that result in zero added shares / borrowing a >0 shares that result in a zero added amount. But I have a new question: should we revert on zero inputs? |
Indeed, we seem to be facing this issue again. |
Not exactly I'm only asking if we should revert on input (0,0) |
Agree |
It is kind of related. I still think #155 should be reopened. |
We revert when the input is zero, but we don't if the computed shares (resp. amount) is zero. Should we do it ? (it might be quite ugly)
See also #408
The text was updated successfully, but these errors were encountered: