Skip to content

Add ERC: Parametric Token - #1937

Open
K2eno wants to merge 4 commits into
ethereum:masterfrom
K2eno:parametric-token
Open

Add ERC: Parametric Token#1937
K2eno wants to merge 4 commits into
ethereum:masterfrom
K2eno:parametric-token

Conversation

@K2eno

@K2eno K2eno commented Aug 10, 2026

Copy link
Copy Markdown

This PR proposes a new ERC: Parametric Token – an extension of ERC-20 that enables fungible tokens to carry account-specific, mutable or immutable parameters, with built-in sub-account support.

Summary
Parametric tokens keep fungibility while allowing each account to hold its own state. Parameters travel with the token and update deterministically on transfer via pure functions (e.g., weighted average, max, or custom combine). The standard introduces:

  • Sub-accounts to hold multiple parameter variants under one address.
  • General and specific allowances, including one-off consumption.
  • An optional Non-Zero-Sum (NZS) extension for cases where creditAmount != debitAmount (e.g., convex portfolios).

Dependencies: ERC-20, ERC-165

Files added: ERCS/erc-xxxx.md

Reference Implementation
A Foundry repo with three fully-tested examples (Prediction, Tenure, Bundle) accompanies the draft. It includes all interfaces, parameter mutation logic, and comprehensive test suites covering core functionality, revert conditions, and NZS event emission.

Discussion Thread
https://ethereum-magicians.org/t/erc-xxxx-parametric-token/29385

The thread is active and seeks feedback on gas costs, parameter limits, sub-account deletion, NZS detection, and engine integration patterns.

Many thanks,
Alexander Zvezdin (@K2eno)

@eip-review-bot

eip-review-bot commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

File ERCS/erc-8378.md

Requires 1 more review from Editors: @g11tech, @jochem-brouwer, @samwilsn, @xinbenlv

Comment thread ERCS/erc-xxxx.md Outdated
@@ -0,0 +1,748 @@
---
eip:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
eip:
eip: 8378

Assigning next sequential EIP/ERC/RIP number.
Numbers are assigned by editors & associates.

Please also update the filename.

Comment thread ERCS/erc-xxxx.md Outdated
title: Parametric Token
description: An extension of ERC-20 enabling fungible tokens with account-specific mutable or immutable parameters and sub-accounts.
author: Alexander Zvezdin (@k2eno)
discussions-to: https://ethereum-magicians.org/t/erc-xxxx-parametric-token/29385

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
discussions-to: https://ethereum-magicians.org/t/erc-xxxx-parametric-token/29385
discussions-to: https://ethereum-magicians.org/t/erc-8378-parametric-token/29385

Updated Eth Magicians title with assigned number

@github-actions

Copy link
Copy Markdown

The commit e71482a (as a parent of 0f210f7) contains errors.
Please inspect the Run Summary for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants