Discussion for adding permit
to ERC20:
opened 08:48PM - 20 Apr 20 UTC
closed 04:34PM - 11 Dec 20 UTC
There's been some discussion about an ERC20 extension with the `permit` function… , popularized by MakerDAO's Dai token (see the code [here](https://github.com/makerdao/dss/blob/44330065999621834b08de1edf3b962f6bbd74c6/src/dai.sol#L118-L140)).
This recently became even more relevant in light of hacks revolving ERC777 and reentrancy, since `permit` could help solve some of the UX issues that drive people to using ERC777 improperly. It looks like [a proper ERC might be in the works](https://twitter.com/MartinLundfall/status/1251880329264201730): we should make sure we're compliant if that ends up happening. In all likelihood the spec will be identical to the Dai code, however.
[Link to EIP-2612](https://eips.ethereum.org/EIPS/eip-2612)
Ro5s
October 11, 2020, 7:55pm
3
Some devs are working on permit() implementation for wETH based on @albertocuestacanada work from OZ reference . Would be fantastic to get extra eyes and think through pushing a std. permit() reference in OZ library. Onward to crush gas costs!
1 Like
Hi @Ro5s ,
It would be great to have a standard permit for ERC-20.
EIP-3009 is also a possibility to consider:
We want to provide permit
in OZ Contracts, but the EIP remains in Draft status and we have a policy of not publishing Drafts because they could need breaking changes in the future.
Do you know if anyone is working on moving the EIP to Final?
Edit: ERC20Permit
is now a part of OpenZeppelin Contract.
1 Like
abcoathup
Split this topic
April 28, 2021, 2:48am
6
frangio
Split this topic
May 20, 2021, 7:29pm
8
A post was split to a new topic: ERC20Permit + SignatureChecker