Closed tanliwei closed 5 months ago
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
The
payable
keywords for functions in theSelfPermit
contract are redundant.Per the specification of the EIP-2612, the
permit
function does not need apayable
keyword.The test file for the
SelfPermit
contract does not verify thepayable
related logic, which implies thepayable
keyword is unnecessary:On the other hand, the
payable
keyword increases the risk of locking ether, due to the lack of the ether withdraw function in theSelfPermit
contract and its derivative contracts.Recommend removing the redundant
payable
keywords and reducing the risk of locking the ether.