-
Notifications
You must be signed in to change notification settings - Fork 133
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
increaseApproval vs increaseAllowance #120
Comments
We will likely patch this in the next batch of upgrades. If you have any comments on the topic please post them here before the end of December 2019. |
Exactly "increaseAllowance" has 1,420 google results while exactly "increaseApproval" has 5,870 google results. |
The convention of increaseAllowance seems to have begun with this pull request, though neither the pull request nor its linked issue discuss the change. Perhaps @frangio can offer some insight here. |
Hi @wjmelements, can you give me some context on what is the issue here? |
@frangio The community had coordinated on increaseApproval, but openzeppelin changed it to increaseAllowance in your pull request. Do you recall why? There is now inconsistency in this specification, and EY is preferring the less-common increaseAllowance. |
We felt that it was a more consistent name with the ERC20 spec, which uses the term "allowance" rather than "approval". We also felt it was okay to make this breaking change (which we did in the 2.0 major release) because these functions are not part of the ERC20 standard. We never recommended their usage when interacting with generic ERC20 tokens, since there's no guarantee they will be available, and this change made sense from that perspective. |
Okay, we will likely change to increaseAllowance and decreaseAllowance in a future update then. |
The specification seems nonstandard. EY prefers increaseAllowance though increaseApproval has been preferred in other locations.
The text was updated successfully, but these errors were encountered: