EIPs Explained

ERC-7641 · Draft · ERC · 2024-02-28

ERC-7641: Intrinsic RevShare Token

A draft ERC-20 extension where the token is a share of a revenue pool: holders claim periodic payouts by snapshot, or burn tokens to redeem their proportional slice of the pool.

What problem does it solve?

Projects that earn fees, such as an open-source model whose users pay a usage fee, often want to share that income with contributors or backers. Doing it ad hoc means custom distribution scripts and no common interface for wallets or dashboards.

ERC-7641, "Intrinsic RevShare Token", builds revenue sharing into an ERC-20 token. Revenue (ETH, and optionally other ERC-20s) flows into a pool held by the token contract. Holders can either claim a share periodically, or burn tokens at any time to take their proportional part of the pool. The spec highlights an "Initial Model Offering" use case for funding open-source AI models, but the mechanism applies to any revenue-generating project.

How it works

IERC7641 extends ERC-20 with five functions:

Function Purpose
snapshot() Record balances and claimable revenue; returns a snapshotId
claimableRevenue(account, snapshotId) ETH account can claim for that snapshot
claim(snapshotId) Claim it (once per snapshot per holder)
redeemableOnBurn(amount) ETH you would get by burning amount
burn(amount) Burn tokens and receive that ETH

In the reference implementation, revenue R received between two snapshots is split by a ratio p: p·R is distributed by snapshot (pR × balance / totalSupply), and (1 − p)·R stays in a burn pool. Burning amount returns amount / totalSupply × burnPool, so a token is always worth at least its share of that pool while it is non-empty.

The optional AltRevToken extension adds claimableERC20 and redeemableERC20OnBurn for revenue paid in other ERC-20 tokens.

Sample code

Claiming and checking burn value from a holder's wallet (ethers v6):

import { Contract, formatEther, parseEther } from "ethers";

const abi = [
  "function snapshot() returns (uint256)",
  "function claimableRevenue(address,uint256) view returns (uint256)",
  "function claim(uint256)",
  "function redeemableOnBurn(uint256) view returns (uint256)",
  "function burn(uint256)",
];
const rev = new Contract(tokenAddress, abi, signer);

const snapId = 3n; // an existing snapshot
const owed = await rev.claimableRevenue(await signer.getAddress(), snapId);
if (owed > 0n) await (await rev.claim(snapId)).wait();

const out = await rev.redeemableOnBurn(parseEther("100"));
console.log("burning 100 tokens would return", formatEther(out), "ETH");

Things to know

  • Status is Draft.
  • snapshot() is public; the spec says implementations should rate-limit it (for example a minimum interval) to prevent spam.
  • Burned tokens stop earning future revenue. Heavy burning shrinks supply and liquidity, which the spec flags as a market-stability risk.
  • With AltRevToken, letting anyone add revenue tokens invites worthless "spam" tokens that raise claim and burn gas costs; the spec recommends governance over which tokens are accepted.
  • Tokens that pay holders a share of revenue may raise legal and regulatory questions depending on jurisdiction; have that reviewed by qualified counsel before issuing one.

#erc20 #revenue-sharing #snapshot #tokenomics

Details

Authors
Conway (@0x1cc), Cathie So (@socathie), Xiaohang Yu (@xhyumiracle), Suning Yao (@fewwwww), Kartin <[email protected]>
Status
Draft
Type
Standards Track / ERC
Created
2024-02-28
Requires

Machine-readable: Markdown · JSON