-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Update EIP-2612: Move to Last Call #5196
Conversation
move eip-2612 to Last Call
All tests passed; auto-merging...(pass) eip-2612.md
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error[markdown-rel-links]: non-relative link or image
--> /tmp/eip-2612.md
|
27 | While ERC-20 tokens have become ubiquitous in the Ethereum ecosystem, their status remains that of second class tokens from the perspective of the protocol. The ability for users to interact with Ethereum without holding any ETH has been a [long outstanding goal](./eip-101.md) and the [subject](./eip-1077.md) [of](./eip-777.md) [many](https://github.com/ethereum/EIPs/issues/1776) [EIPs](./eip-1271.md).
|
error[markdown-rel-links]: non-relative link or image
--> /tmp/eip-2612.md
|
29 | So far, many of these proposals have seen very little adoption, and the ones that have been adopted (such as [ERC-777](./eip-777.md)), introduce a lot of additional functionality, causing [unexpected behavior in mainstream contracts](https://medium.com/consensys-diligence/uniswap-audit-b90335ac007).
|
error[markdown-rel-links]: non-relative link or image
--> /tmp/eip-2612.md
|
154 | The `permit` function is sufficient for enabling any operation involving ERC-20 tokens to be paid for using the token itself, rather than using ETH.
|
error[markdown-rel-links]: non-relative link or image
--> /tmp/eip-2612.md
|
173 | There is also an implementation in the token [`Stake`](https://etherscan.io/address/0x0Ae055097C6d159879521C384F1D2123D1f195e6#code) with the same ABI as `dai` but with different semantics: it lets users issue "expiring approvals", that only allow `transferFrom` to occur while `expiry >= block.timestamp`.
|
error[markdown-rel-links]: non-relative link or image
--> /tmp/eip-2612.md
|
175 | The specification presented here is in line with the implementation in [Uniswap-v2](https://github.com/uniswap/uniswap-v2-core).
|
error[markdown-rel-links]: non-relative link or image
--> /tmp/eip-2612.md
|
184 | [UniswapV2ERC20.sol](https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
|
error[markdown-rel-links]: non-relative link or image
--> /tmp/eip-2612.md
|
194 | The standard [ERC-20 race condition for approvals](https://swcregistry.io/docs/SWC-114) applies to `permit` as well.
|
@z0r0z please push an empty commit and then fix the CI errors. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -4,7 +4,8 @@ title: permit – 712-signed approvals | |||
description: ERC-20 approvals via secp256k1 signatures | |||
author: Martin Lundfall (@Mrchico) | |||
discussions-to: https://github.com/ethereum/EIPs/issues/2613 | |||
status: Review | |||
status: Last Call | |||
last-call-deadline: 2022-07-30 | |||
type: Standards Track | |||
category: ERC | |||
created: 2020-04-13 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm, is it the author's intention to not follow EIP-165? I believe it's the author's judgement call but just to make sure it's a conscious decision.
Superseded by #5506 |
Pull request was closed
eip-2612 has been discussed for 2 years and seen wide implementation in production (uniswapV2) and in contract libraries like openzeppelin and solmate. It seems time to finalize and move this as a standard extension for erc20 fungible tokens.