-
Notifications
You must be signed in to change notification settings - Fork 762
Add ERC: Temporary Approval Extension for ERC-20 #358
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
Conversation
✅ All reviewers have approved. |
Co-authored-by: Andrew B Coathup <28278242+abcoathup@users.noreply.github.com>
Commit 85f7d71 removes EIP-1153 reference from the description section but it seems that EIP Walidator needs to be fixed instead: https://github.com/ethereum/ERCs/actions/runs/8536634399/job/23385573486#step:3:14
It seems that it disallows referencing any EIP in the description section. |
IMO "transient" is a technical name that refers to the underlying mechanism used here, but should not be exposed in the ABI or in the "docuementation" or this feature. I propose using "temporary allowance" instead of "transient allowance", as I believe this naming would be more user-friendly for people that have no knowledge of EIP-1153 |
This ERC should clearly mention that:
|
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Mikhail Melnik <by.zumzoom@gmail.com>
Update ERC-7674 based on PR comments
ERCS/erc-7674.md
Outdated
--- | ||
eip: 7674 | ||
title: Temporary Approval Extension for ERC-20 | ||
description: An interface for ephemeral ERC-20 approvals |
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.
description: An interface for ephemeral ERC-20 approvals | |
description: An interface for ERC-20 approvals lasting a single transaction |
ERCS/erc-7674.md
Outdated
|
||
## Motivation | ||
|
||
User are often require to set token approval that will only be used once. It is common to leave unexpected approvals after these interactions. [EIP-1153](./eip-1153.md) introduces a cheap way to handle temporarily allowances. |
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.
will only be used once
This is a bit misleading. This approval can be used multiple times, as long as it's in a single transaction.
The commit 8a11a87 (as a parent of e167942) contains errors. |
I took the liberty of fixing your EIP/ERC links. You do need to use |
# Conflicts: # ERCS/erc-7674.md
Updated based on PR comments
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.
All Reviewers Have Approved; Performing Automatic Merge...
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.
All Reviewers Have Approved; Performing Automatic Merge...
Among all cases of
ERC-20
token transactions, a popular one is when smart contracts approve token spending to other contracts. Often tokens are approved for only one transaction.Following the
ERC-20
standard, if a smart contract wants to approve the spending of tokens to another smart contract for only one transaction, this causes the allowance saved in storage to be updated and retrieved.Token allowances utilising
EIP-1153
transient storage are a cheaper alternative to the regular storage allowances.