Add ERC: Token Safety Score#1729
Open
Aigen-Protocol wants to merge 1 commit into
Open
Conversation
Collaborator
File
|
Aigen-Protocol
added a commit
to Aigen-Protocol/aigen-protocol
that referenced
this pull request
May 7, 2026
- SafeRouter V2 deployed on Optimism (0x38be6AA1044e866FcDFE34d4B4273F703668B80E, block 151287236, tx 0x1df8010ade30a2d622af9f6e1248619dd8cfb6b5af9447986981b8639fce5f6c) wrapping Velodrome V2. Same code as Base V2, atomic safety guarantee, same custom-error revert path. Cost $0.005 from OP-ETH balance. - ElizaOS plugin install line: `npm install @aigen-protocol/plugin-safeagent` (PR Aigen-Protocol/plugin-safeagent#1, awaiting npm publish) - New ERC submitted to ethereum/ERCs#1729 (Token Safety Score, Standards Track, category ERC). Reference implementations are our deployed oracles + SafeRouter. Replaces our withdrawn 7913-update PR (we incorrectly targeted OZ Signature Verifiers; this is a new unassigned-number proposal). - Multi-chain table at top, on-chain proof tx hashes inline.
|
The commit 138b29e (as a parent of 0316354) contains errors. |
abcoathup
reviewed
May 8, 2026
| @@ -0,0 +1,236 @@ | |||
| --- | |||
Contributor
There was a problem hiding this comment.
Suggested change
| --- | |
| --- | |
| eip: 8258 |
@Aigen-Protocol
Assigning next sequential EIP/ERC/RIP number.
Numbers are assigned by editors & associates.
Please also update the filename.
abcoathup
reviewed
May 8, 2026
| title: Token Safety Score | ||
| description: Standard interface for on-chain ERC-20 safety scoring oracles, enabling routers and accounts to enforce pre-trade safety checks atomically. | ||
| author: CryptoGen Security (@Aigen-Protocol) | ||
| discussions-to: https://ethereum-magicians.org/t/erc-token-safety-score/aigen |
Contributor
There was a problem hiding this comment.
Please create a discussions topic
This was referenced May 8, 2026
Closed
Aigen-Protocol
added a commit
to Aigen-Protocol/aigen-protocol
that referenced
this pull request
May 13, 2026
- SafeRouter V2 deployed on Optimism (0x38be6AA1044e866FcDFE34d4B4273F703668B80E, block 151287236, tx 0x1df8010ade30a2d622af9f6e1248619dd8cfb6b5af9447986981b8639fce5f6c) wrapping Velodrome V2. Same code as Base V2, atomic safety guarantee, same custom-error revert path. Cost $0.005 from OP-ETH balance. - ElizaOS plugin install line: `npm install @aigen-protocol/plugin-safeagent` (PR Aigen-Protocol/plugin-safeagent#1, awaiting npm publish) - New ERC submitted to ethereum/ERCs#1729 (Token Safety Score, Standards Track, category ERC). Reference implementations are our deployed oracles + SafeRouter. Replaces our withdrawn 7913-update PR (we incorrectly targeted OZ Signature Verifiers; this is a new unassigned-number proposal). - Multi-chain table at top, on-chain proof tx hashes inline.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new draft ERC defining a minimal interface for on-chain ERC-20 safety scoring oracles.
What it standardizes
A 2-function read-only interface (
getSafetyScore,isSafe) that wallet routers, AA modules, and DEX aggregators can call atomically before executing a swap or approval, then revert if a token fails a configurable safety threshold.Why it's not just a vendor API
Off-chain safety services (GoPlus, De.Fi, Honeypot.is) cannot provide atomic guarantees: a check at time T followed by a swap at T+1 is racey. This standard puts the check inside the transaction.
Status
erc-NNNN.mdby an editor.0x37b9e9B8789181f1AaaD1cD51A5f00A887fa9b8e0x3B8A6D696f2104A9aC617bB91e6811f4894980470xF6EFc5D5902d1a0ce58D9ab1715Cf30f077D8f6e(live, 1 successful swap, 1 reverted-with-custom-error block proving the atomic guarantee)0x38be6AA1044e866FcDFE34d4B4273F703668B80E(live)Note on prior attempt
We previously opened PR #1646 incorrectly targeting the existing ERC-7913 (OpenZeppelin's Signature Verifiers) — that was withdrawn. This is the new submission with an unassigned number. We followed the EIP-1 process this time.
Discussions
Will open a thread on ethereum-magicians.org and link via
discussions-toonce a number is assigned (chicken-and-egg with the EIP number).