-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Remove ERC20._burnFrom #1766
Comments
I'm not sure this is as clear cut as you put it. If it's not a reasonable primitive, why is Tangentially to this specific issue, I'm starting to think perhaps having constraints on |
It isn't, which is why it doesn't exist 😛 What do you mean by 'change the rules'? A contract writes their own rules, we simply provide ways for them to do so. I think having implicit arguments in these |
For example, we could say that one of the rules of |
I believe that would land us on a design too stiff to be useful. IMO we should simply provide useful and correct primitives that can be used to build upon, as opposed to being too opinionated regarding what end user contracts should look like. And even an invariant as basic as the |
ERC20._burnFrom
doesn't really fit with the standard for otherinternal
functions, both in that it usesmsg.sender
and in that it is not really a reasonable primitive. It should disappear, andERC20Burnable
should implementburnFrom
in terms of_burn
and_approve
.The text was updated successfully, but these errors were encountered: