{"eip":5173,"title":"NFT Future Rewards (nFR)","description":"A multigenerational reward mechanism that rewards‌ all ‌owners of non-fungible tokens (NFT).","authors":["Yale ReiSoleil (@longnshort)","dRadiant (@dRadiant)","D Wang","PhD \u003cdavid@iob.fi\u003e"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2022-05-08","requires":[165,721],"discussionsTo":"https://ethereum-magicians.org/t/non-fungible-future-rewards-token-standard/9203","repo":"ERCs","label":"ERC-5173","officialUrl":"https://eips.ethereum.org/EIPS/eip-5173","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5173.md","url":"https://eips.huatuo.xyz/eip-5173/","tldr":{"en":"A draft ERC-721 extension in which each profitable resale shares a slice of the seller's profit with a fixed window of previous owners, so holders keep earning from an NFT's appreciation after they sell it.","ja":"ERC-721 拡張のドラフト。利益の出る転売のたびに、売り手の利益の一部を、固定された範囲の過去のオーナーたちに分配し、保有者が売却後も NFT の値上がりから収益を得続けられるようにする。","ko":"ERC-721 확장 초안. 수익이 나는 재판매마다 판매자 수익의 일부를 정해진 범위의 이전 소유자들과 나누어, 보유자가 판매한 뒤에도 NFT의 가치 상승에서 계속 수익을 얻게 한다.","zh":"一个 ERC-721 扩展草案：每次盈利转售时，都会把卖家利润的一部分分给固定窗口内的历任持有者，让持有者在卖出之后仍能从 NFT 的增值中持续获益。"},"tags":["nft","erc-721","rewards","royalties","marketplace"],"explainers":{"en":{"lang":"en","tldr":"A draft ERC-721 extension in which each profitable resale shares a slice of the seller's profit with a fixed window of previous owners, so holders keep earning from an NFT's appreciation after they sell it.","tags":["nft","erc-721","rewards","royalties","marketplace"],"related":[721,2981,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-5173/","markdown":"## What problem does it solve?\n\nWith a normal NFT, once you sell you have no further stake in the asset. If it later sells for ten times the price, only the later sellers benefit. The authors frame trading as a zero-sum game (`P(A) + P(B) + fees ≤ 0`) and want a model where earlier owners, who helped build the asset's value, share in later gains.\n\nnFR (\"non-fungible Future Rewards\") records each token's ownership and price history on-chain and, on every profitable sale, routes part of the profit back to recent past owners.\n\n## How it works\n\nEach token carries an `FRInfo` record:\n\n| Field | Meaning |\n| --- | --- |\n| `numGenerations` | Size of the sliding window of past owners who share rewards |\n| `percentOfProfit` | Share of the profit paid as Future Rewards, scaled by `1e18` (`5e16` = 5%) |\n| `successiveRatio` | Common ratio `g` of the geometric split between generations |\n| `lastSoldPrice` | Price of the previous sale, used to compute profit |\n| `addressesInFR` | Owners currently inside the window |\n\nThe contract itself is the marketplace: `list(tokenId, price)`, `unlist(tokenId)` and payable `buy(tokenId)`. On a sale:\n\n1. Profit `P = price − lastSoldPrice`. If it is not positive, nothing is shared (losing sellers owe nothing), but they still stay in line for future rewards.\n2. Otherwise `P × r` is split among up to `n = min(owners, window)` previous owners along a geometric sequence, with earlier generations getting larger shares. The seller keeps the rest.\n3. Rewards are credited, not pushed: owners withdraw with `releaseFR(account)` (pull payments, emitting `FRClaimed`).\n4. The window shifts: the oldest owner drops out, the seller joins.\n\nPlain `transfer`s are treated as sales at 0 ETH, so moving a token outside the marketplace gives the recipient a zero cost basis and a larger future payout obligation. Transfers to yourself or to an address already in the window must be blocked.\n\n## Sample code\n\nThe geometric split, mirroring the spec's `_calculateFR` (TypeScript, floating point for clarity):\n\n```ts\n// p: profit, r: share of profit for FR, g: successive ratio, m: owners so far, w: window size\nfunction calculateFR(p: number, r: number, g: number, m: number, w: number): number[] {\n  const n = Math.min(m, w);\n  return Array.from({ length: n }, (_, k) =\u003e {\n    const i = k + 1;\n    return g === 1\n      ? (p * r) / n\n      : (p * r * (1 - g) * g ** (i - 1)) / (1 - g ** n);\n  }); // the shares sum to p * r\n}\n\ncalculateFR(1.0, 0.1, 0.5, 4, 10); // 1 ETH profit, 10% shared across 4 owners\n```\n\nOn-chain implementations must use 1e18 fixed-point math instead of floats.\n\n## Things to know\n\n- Status: **Draft**. The interface may still change.\n- It is designed to coexist with [ERC-2981](/eip-2981/) creator royalties, which are a separate payment.\n- Wash trading is the main known weakness: one person can occupy several generations with different wallets. The spec only suggests off-chain mitigations such as wallet scores and minimum holding periods.\n- Long generation windows make distribution loops expensive; check `numGenerations` before interacting.\n- Guard all payment functions against reentrancy.\n"},"ja":{"lang":"ja","tldr":"ERC-721 拡張のドラフト。利益の出る転売のたびに、売り手の利益の一部を、固定された範囲の過去のオーナーたちに分配し、保有者が売却後も NFT の値上がりから収益を得続けられるようにする。","tags":["nft","erc-721","rewards","royalties","marketplace"],"related":[721,2981,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-5173/","markdown":"## 何を解決するのか\n\n通常の NFT では、売却した時点でその資産に対する持ち分はなくなります。のちに 10 倍の価格で売れても、恩恵を受けるのは後の売り手だけです。作者は取引をゼロサムゲーム（`P(A) + P(B) + fees ≤ 0`）と捉え、資産の価値を築くのに貢献した過去のオーナーも、後の利益を分け合えるモデルを目指しています。\n\nnFR（non-fungible Future Rewards）は、各トークンの所有履歴と価格履歴をオンチェーンに記録し、利益の出る売却のたびに、その利益の一部を最近の過去のオーナーに還元します。\n\n## 仕組み\n\n各トークンは `FRInfo` レコードを持ちます。\n\n| フィールド | 意味 |\n| --- | --- |\n| `numGenerations` | 報酬を分け合う過去のオーナーのスライディングウィンドウの大きさ |\n| `percentOfProfit` | Future Rewards として支払われる利益の割合。`1e18` でスケールされる（`5e16` = 5%） |\n| `successiveRatio` | 世代間の等比分配の公比 `g` |\n| `lastSoldPrice` | 利益の計算に使う、前回の売却価格 |\n| `addressesInFR` | 現在ウィンドウ内にいるオーナー |\n\nコントラクト自体がマーケットプレイスになります。`list(tokenId, price)`、`unlist(tokenId)`、payable な `buy(tokenId)` です。売却時の流れは次のとおりです。\n\n1. 利益は `P = price − lastSoldPrice` です。正でなければ何も分配されません（損失を出した売り手は何も支払う必要がありません）が、売り手は今後の報酬を受け取る列には残ります。\n2. 正の場合、`P × r` が最大 `n = min(owners, window)` 人の過去のオーナーに、等比数列に沿って分配されます。古い世代ほど大きな取り分を受け取ります。残りは売り手が受け取ります。\n3. 報酬は送金されるのではなく計上されます。オーナーは `releaseFR(account)` で引き出します（プル型の支払いで、`FRClaimed` を emit します）。\n4. ウィンドウがずれます。最も古いオーナーが外れ、売り手が加わります。\n\n通常の `transfer` は 0 ETH での売却として扱われるため、マーケットプレイスの外でトークンを移動すると、受け取り側の取得原価がゼロになり、将来の支払い義務が大きくなります。自分自身への転送や、すでにウィンドウ内にいるアドレスへの転送はブロックしなければなりません。\n\n## サンプルコード\n\n仕様の `_calculateFR` を反映した、等比分配の計算です（TypeScript、分かりやすさのため浮動小数点を使用）。\n\n```ts\n// p: profit, r: share of profit for FR, g: successive ratio, m: owners so far, w: window size\nfunction calculateFR(p: number, r: number, g: number, m: number, w: number): number[] {\n  const n = Math.min(m, w);\n  return Array.from({ length: n }, (_, k) =\u003e {\n    const i = k + 1;\n    return g === 1\n      ? (p * r) / n\n      : (p * r * (1 - g) * g ** (i - 1)) / (1 - g ** n);\n  }); // the shares sum to p * r\n}\n\ncalculateFR(1.0, 0.1, 0.5, 4, 10); // 1 ETH profit, 10% shared across 4 owners\n```\n\nオンチェーンの実装では、浮動小数点ではなく 1e18 の固定小数点演算を使う必要があります。\n\n## 知っておくべきこと\n\n- ステータス: **Draft**。インターフェースはまだ変更される可能性があります。\n- クリエイターロイヤリティである [ERC-2981](/eip-2981/) と共存するように設計されています。これは別の支払いです。\n- 既知の主な弱点はウォッシュトレードです。1 人が複数のウォレットで複数の世代を占めることができます。仕様が提案するのは、ウォレットのスコアや最低保有期間といったオフチェーンでの緩和策だけです。\n- 世代ウィンドウが長いと、分配のループが高コストになります。操作する前に `numGenerations` を確認してください。\n- すべての支払い関数をリエントランシーから保護してください。\n"},"ko":{"lang":"ko","tldr":"ERC-721 확장 초안. 수익이 나는 재판매마다 판매자 수익의 일부를 정해진 범위의 이전 소유자들과 나누어, 보유자가 판매한 뒤에도 NFT의 가치 상승에서 계속 수익을 얻게 한다.","tags":["nft","erc-721","rewards","royalties","marketplace"],"related":[721,2981,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-5173/","markdown":"## 어떤 문제를 해결하나요?\n\n일반 NFT는 한 번 팔고 나면 그 자산에 대한 지분이 남지 않습니다. 나중에 열 배 가격에 팔려도 이득은 이후의 판매자만 봅니다. 작성자들은 거래를 제로섬 게임(`P(A) + P(B) + fees ≤ 0`)으로 보고, 자산 가치를 쌓는 데 기여한 이전 소유자들도 이후의 이익을 나누어 갖는 모델을 원합니다.\n\nnFR(\"non-fungible Future Rewards\")은 각 토큰의 소유 이력과 가격 이력을 온체인에 기록하고, 수익이 나는 판매마다 수익의 일부를 최근의 이전 소유자들에게 돌려줍니다.\n\n## 어떻게 동작하나요?\n\n각 토큰은 `FRInfo` 레코드를 가집니다.\n\n| 필드 | 의미 |\n| --- | --- |\n| `numGenerations` | 보상을 나누는 이전 소유자 슬라이딩 윈도우의 크기 |\n| `percentOfProfit` | Future Rewards로 지급되는 수익 비율. `1e18`로 스케일링(`5e16` = 5%) |\n| `successiveRatio` | 세대 간 등비 분배의 공비 `g` |\n| `lastSoldPrice` | 수익 계산에 쓰이는 직전 판매 가격 |\n| `addressesInFR` | 현재 윈도우 안에 있는 소유자 |\n\n컨트랙트 자체가 마켓플레이스입니다. `list(tokenId, price)`, `unlist(tokenId)`, payable인 `buy(tokenId)`가 있습니다. 판매 시에는 다음과 같이 진행됩니다.\n\n1. 수익은 `P = price − lastSoldPrice`입니다. 양수가 아니면 아무것도 분배되지 않지만(손해를 본 판매자는 아무것도 내지 않습니다), 판매자는 이후 보상을 받을 대열에는 그대로 남습니다.\n2. 양수이면 `P × r`을 최대 `n = min(owners, window)`명의 이전 소유자에게 등비수열에 따라 나눕니다. 오래된 세대일수록 더 큰 몫을 받습니다. 나머지는 판매자가 가집니다.\n3. 보상은 푸시되지 않고 적립됩니다. 소유자는 `releaseFR(account)`로 인출합니다(풀 방식 지급이며 `FRClaimed`를 emit합니다).\n4. 윈도우가 이동합니다. 가장 오래된 소유자가 빠지고 판매자가 들어옵니다.\n\n일반 `transfer`는 0 ETH 판매로 취급되므로, 마켓플레이스 밖에서 토큰을 옮기면 받는 사람의 취득 원가가 0이 되어 미래의 지급 의무가 더 커집니다. 자기 자신에게 또는 이미 윈도우 안에 있는 주소로 보내는 전송은 막아야 합니다.\n\n## 샘플 코드\n\n사양의 `_calculateFR`를 반영한 등비 분배 계산입니다(TypeScript, 명확성을 위해 부동소수점 사용).\n\n```ts\n// p: profit, r: share of profit for FR, g: successive ratio, m: owners so far, w: window size\nfunction calculateFR(p: number, r: number, g: number, m: number, w: number): number[] {\n  const n = Math.min(m, w);\n  return Array.from({ length: n }, (_, k) =\u003e {\n    const i = k + 1;\n    return g === 1\n      ? (p * r) / n\n      : (p * r * (1 - g) * g ** (i - 1)) / (1 - g ** n);\n  }); // the shares sum to p * r\n}\n\ncalculateFR(1.0, 0.1, 0.5, 4, 10); // 1 ETH profit, 10% shared across 4 owners\n```\n\n온체인 구현은 부동소수점 대신 1e18 고정소수점 연산을 사용해야 합니다.\n\n## 알아둘 점\n\n- 상태: **Draft**. 인터페이스는 아직 바뀔 수 있습니다.\n- 별도의 지급인 [ERC-2981](/eip-2981/) 크리에이터 로열티와 함께 쓸 수 있도록 설계되었습니다.\n- 알려진 주된 약점은 워시 트레이딩입니다. 한 사람이 여러 지갑으로 여러 세대를 차지할 수 있습니다. 사양은 지갑 점수나 최소 보유 기간 같은 오프체인 완화책만 제안합니다.\n- 세대 윈도우가 길면 분배 루프가 비싸집니다. 상호작용하기 전에 `numGenerations`를 확인하세요.\n- 모든 지급 함수를 재진입으로부터 보호하세요.\n"},"zh":{"lang":"zh","tldr":"一个 ERC-721 扩展草案：每次盈利转售时，都会把卖家利润的一部分分给固定窗口内的历任持有者，让持有者在卖出之后仍能从 NFT 的增值中持续获益。","tags":["nft","erc-721","rewards","royalties","marketplace"],"related":[721,2981,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-5173/","markdown":"## 它解决什么问题？\n\n对于普通 NFT，一旦卖出，你对该资产就不再有任何权益。如果它之后以十倍价格成交，只有后来的卖家受益。作者把交易看作零和博弈（`P(A) + P(B) + fees ≤ 0`），希望建立一种模型，让帮助构建资产价值的早期持有者也能分享后来的收益。\n\nnFR（\"non-fungible Future Rewards\"）把每个代币的所有权和价格历史记录在链上，并在每次盈利的出售中，将一部分利润返还给近期的历任持有者。\n\n## 它如何运作\n\n每个代币带有一条 `FRInfo` 记录：\n\n| 字段 | 含义 |\n| --- | --- |\n| `numGenerations` | 共享奖励的历任持有者滑动窗口的大小 |\n| `percentOfProfit` | 作为 Future Rewards 支付的利润份额，按 `1e18` 缩放（`5e16` = 5%） |\n| `successiveRatio` | 各代之间等比分配的公比 `g` |\n| `lastSoldPrice` | 上一次出售的价格，用于计算利润 |\n| `addressesInFR` | 当前位于窗口内的持有者 |\n\n合约本身就是市场：`list(tokenId, price)`、`unlist(tokenId)` 和 payable 的 `buy(tokenId)`。出售时：\n\n1. 利润 `P = price − lastSoldPrice`。如果不为正，则不分配任何东西（亏损的卖家无需支付），但他们仍然保留在后续获得奖励的队列中。\n2. 否则，`P × r` 沿一个等比数列分给最多 `n = min(owners, window)` 位历任持有者，越早的世代分得越多。卖家保留其余部分。\n3. 奖励是记账而不是推送：持有者通过 `releaseFR(account)` 提取（拉取式支付，触发 `FRClaimed`）。\n4. 窗口随之移动：最早的持有者移出，卖家加入。\n\n普通的 `transfer` 被视为以 0 ETH 的出售，因此在市场之外转移代币会让接收方的成本基础为零，并使其未来的支付义务更大。必须阻止向自己或向已在窗口内的地址转账。\n\n## 示例代码\n\n等比分配，对应规范中的 `_calculateFR`（TypeScript，为清晰起见使用浮点数）：\n\n```ts\n// p: profit, r: share of profit for FR, g: successive ratio, m: owners so far, w: window size\nfunction calculateFR(p: number, r: number, g: number, m: number, w: number): number[] {\n  const n = Math.min(m, w);\n  return Array.from({ length: n }, (_, k) =\u003e {\n    const i = k + 1;\n    return g === 1\n      ? (p * r) / n\n      : (p * r * (1 - g) * g ** (i - 1)) / (1 - g ** n);\n  }); // the shares sum to p * r\n}\n\ncalculateFR(1.0, 0.1, 0.5, 4, 10); // 1 ETH profit, 10% shared across 4 owners\n```\n\n链上实现必须使用 1e18 定点数运算，而不是浮点数。\n\n## 需要注意\n\n- 状态：**Draft**。接口仍可能变化。\n- 它被设计为可与 [ERC-2981](/eip-2981/) 创作者版税共存，后者是一笔独立的付款。\n- 刷量交易是已知的主要弱点：一个人可以用不同钱包占据多个世代。规范只建议了钱包评分和最短持有期等链下缓解措施。\n- 较长的世代窗口会让分配循环的成本很高；交互前请检查 `numGenerations`。\n- 所有支付函数都要防范重入攻击。\n"}}}
