{"eip":7649,"title":"Bonding curve-embedded liquidity for NFTs","description":"Embedding liquidity into Non-Fungible Tokens (NFTs) without modifications to ERC-721.","authors":["Arif Khan \u003carif@alethea.ai\u003e","Ahmad Matyana \u003cahmad@alethea.ai\u003e","Basil Gorin (@vgorin)","Vijay Bhayani (@unblocktechie)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2024-02-28","requires":[721],"discussionsTo":"https://ethereum-magicians.org/t/erc-7649-bonding-curve-embedded-liquidity-for-erc-721-non-fungible-tokens-nfts/19079","repo":"ERCs","label":"ERC-7649","officialUrl":"https://eips.ethereum.org/EIPS/eip-7649","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7649.md","url":"https://eips.huatuo.xyz/eip-7649/","tldr":{"en":"A Draft standard for attaching a separate bonding-curve 'shares' contract to any ERC-721 NFT, so people can buy and sell shares at a formula-defined price while the NFT's owner earns a guaranteed fee on every trade.","ja":"任意の ERC-721 NFT に、別のボンディングカーブ「シェア」コントラクトを付随させる標準のドラフト。数式で決まる価格でシェアを売買でき、NFT の所有者はすべての取引で保証された手数料を得る。","ko":"어떤 ERC-721 NFT에든 별도의 본딩 커브 \"셰어\" 컨트랙트를 붙이는 표준 초안. 사람들이 공식으로 정해진 가격에 셰어를 사고팔 수 있고, NFT 소유자는 모든 거래에서 보장된 수수료를 얻는다.","zh":"草案标准：为任意 ERC-721 NFT 附加一个独立的联合曲线\"份额\"合约，让人们可以按公式确定的价格买卖份额，而 NFT 的所有者在每笔交易中都能获得有保证的手续费。"},"tags":["nft","erc721","bonding-curve","liquidity","defi"],"explainers":{"en":{"lang":"en","tldr":"A Draft standard for attaching a separate bonding-curve 'shares' contract to any ERC-721 NFT, so people can buy and sell shares at a formula-defined price while the NFT's owner earns a guaranteed fee on every trade.","tags":["nft","erc721","bonding-curve","liquidity","defi"],"related":[721,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7649/","markdown":"## What problem does it solve?\n\nAn NFT is a single, indivisible item, so it is often illiquid: there may be no buyer at any given moment, and there is no way to take a small position in it. Bonding curves, where a contract always quotes a price as a function of supply, provide continuous liquidity, but there was no standard way to attach one to an existing [ERC-721](/eip-721/) token.\n\nERC-7649 defines how to bolt a \"Tradeable Shares\" contract onto an NFT **without modifying ERC-721**. The authors' motivating examples are NFTs representing AI models or GPU and storage pools, where demand for shares signals how valuable the resource is.\n\n## How it works\n\n- **Separate contract.** Each shares contract points to one subject NFT (`getSharesSubject()` returns the ERC-721 address and token ID). The NFT contract itself is unchanged.\n- **Bonding curve.** `getPrice(supply, amount)` defines the price of `amount` shares given the current `supply`. Creators may customise parameters (slope, intercept) or even the curve shape.\n- **Buying and selling.** `buyShares(amount)` / `buySharesTo(amount, beneficiary)` mint shares at the curve price plus fees; `sellShares(amount)` / `sellSharesTo(...)` burn them and pay out. The first share can only be bought by the current NFT owner, and the last share cannot be sold.\n- **Price quotes.** `getBuyPrice`, `getSellPrice` and their `...AfterFee` variants, either for the current supply or for any hypothetical supply.\n- **Shares are not transferable.** They can only be bought from and sold back to the contract. `getSharesBalance` and `getSharesSupply` play the role of `balanceOf` / `totalSupply`.\n- **Guaranteed creator fees.** Every trade pays a fee to the issuer, which is whoever currently owns the NFT (`getSharesIssuer()`). `getFeePercent()` uses 18 decimals (`1e18` = 100 %). Implementations may split fees between protocol, holders and subject.\n- **Payment.** Either native ETH or an [ERC-20](/eip-20/) token (or both).\n- A `Trade` event logs every buy and sell, and `getTradeVolume()` only ever increases.\n\n## Sample code\n\nBuying shares for ETH and checking the sell-back value (ethers v6):\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider, formatEther } from \"ethers\";\n\nconst abi = [\n  \"function getSharesSubject() view returns (tuple(address tokenAddress, uint256 tokenId))\",\n  \"function getBuyPriceAfterFee(uint256 amount) view returns (uint256)\",\n  \"function getSellPriceAfterFee(uint256 amount) view returns (uint256)\",\n  \"function getSharesBalance(address holder) view returns (uint256)\",\n  \"function buyShares(uint256 amount) payable\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst trader = new Wallet(process.env.TRADER_KEY!, provider);\nconst shares = new Contract(process.env.SHARES!, abi, trader);\n\nconst subject = await shares.getSharesSubject();\nconsole.log(\"NFT:\", subject.tokenAddress, subject.tokenId.toString());\n\nconst cost = await shares.getBuyPriceAfterFee(2n);\nawait (await shares.buyShares(2n, { value: cost })).wait();\n\nconst bal = await shares.getSharesBalance(trader.address);\nconsole.log(\"could sell now for\", formatEther(await shares.getSellPriceAfterFee(bal)), \"ETH\");\n```\n\n## Things to know\n\n- **Status: Draft.** Security considerations are generic, and the interface may change.\n- Fees go to the *current* NFT owner, which can change at any moment (including by front-running). Clients must not rely on `getSharesIssuer()` staying the same.\n- Bonding-curve shares reward early buyers; late buyers can lose most of their value if demand falls. Fees on both buy and sell mean a round trip always costs money.\n- The spec points to the older Bonded Fungible Tokens idea (ERC-1671) as related prior work.\n"},"ja":{"lang":"ja","tldr":"任意の ERC-721 NFT に、別のボンディングカーブ「シェア」コントラクトを付随させる標準のドラフト。数式で決まる価格でシェアを売買でき、NFT の所有者はすべての取引で保証された手数料を得る。","tags":["nft","erc721","bonding-curve","liquidity","defi"],"related":[721,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7649/","markdown":"## 何を解決するのか\n\nNFT は分割できない 1 点ものなので、流動性が低いことがよくあります。ある瞬間に買い手がいないかもしれず、少額のポジションを持つ方法もありません。コントラクトが供給量の関数として常に価格を提示するボンディングカーブは、継続的な流動性を提供しますが、既存の [ERC-721](/eip-721/) トークンにそれを付随させる標準的な方法はありませんでした。\n\nERC-7649 は、ERC-721 を **変更せずに** NFT に \"Tradeable Shares\" コントラクトを後付けする方法を定義します。作者たちが動機として挙げる例は、AI モデルや GPU・ストレージプールを表す NFT で、シェアへの需要がそのリソースの価値を示します。\n\n## 仕組み\n\n- **別個のコントラクト。** 各シェアコントラクトは、対象となる NFT を 1 つ指します（`getSharesSubject()` が ERC-721 のアドレスとトークン ID を返します）。NFT コントラクト自体は変わりません。\n- **ボンディングカーブ。** `getPrice(supply, amount)` は、現在の `supply` に対する `amount` 個のシェアの価格を定義します。作成者はパラメータ（傾き、切片）やカーブの形そのものをカスタマイズできます。\n- **売買。** `buyShares(amount)` / `buySharesTo(amount, beneficiary)` はカーブ価格に手数料を加えた価格でシェアを mint し、`sellShares(amount)` / `sellSharesTo(...)` はそれを burn して支払います。最初のシェアは現在の NFT 所有者しか買えず、最後のシェアは売れません。\n- **価格の見積もり。** `getBuyPrice`、`getSellPrice` と、それぞれの `...AfterFee` 版があり、現在の供給量、または任意の仮想的な供給量に対して使えます。\n- **シェアは移転できません。** コントラクトから買い、コントラクトに売り戻すことしかできません。`getSharesBalance` と `getSharesSupply` が `balanceOf` / `totalSupply` の役割を果たします。\n- **保証されたクリエイター手数料。** すべての取引で、発行者に手数料が支払われます。発行者とは、現在その NFT を所有している者です（`getSharesIssuer()`）。`getFeePercent()` は 18 桁の小数を使います（`1e18` = 100 %）。実装は、手数料をプロトコル、保有者、対象で分け合ってもかまいません。\n- **支払い。** ネイティブの ETH か [ERC-20](/eip-20/) トークン（または両方）。\n- `Trade` イベントがすべての売買を記録し、`getTradeVolume()` は増える一方です。\n\n## サンプルコード\n\nETH でシェアを購入し、売り戻し時の価値を確認する（ethers v6）:\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider, formatEther } from \"ethers\";\n\nconst abi = [\n  \"function getSharesSubject() view returns (tuple(address tokenAddress, uint256 tokenId))\",\n  \"function getBuyPriceAfterFee(uint256 amount) view returns (uint256)\",\n  \"function getSellPriceAfterFee(uint256 amount) view returns (uint256)\",\n  \"function getSharesBalance(address holder) view returns (uint256)\",\n  \"function buyShares(uint256 amount) payable\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst trader = new Wallet(process.env.TRADER_KEY!, provider);\nconst shares = new Contract(process.env.SHARES!, abi, trader);\n\nconst subject = await shares.getSharesSubject();\nconsole.log(\"NFT:\", subject.tokenAddress, subject.tokenId.toString());\n\nconst cost = await shares.getBuyPriceAfterFee(2n);\nawait (await shares.buyShares(2n, { value: cost })).wait();\n\nconst bal = await shares.getSharesBalance(trader.address);\nconsole.log(\"could sell now for\", formatEther(await shares.getSellPriceAfterFee(bal)), \"ETH\");\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** セキュリティ上の考慮事項は一般的なもので、インターフェースは変わる可能性があります。\n- 手数料は *現在の* NFT 所有者に支払われますが、所有者はいつでも（フロントランニングによるものを含めて）変わりえます。クライアントは `getSharesIssuer()` が変わらないことを前提にしてはいけません。\n- ボンディングカーブのシェアは早期の買い手に有利です。需要が落ちれば、後から買った人は価値の大半を失う可能性があります。売買の両方に手数料がかかるため、往復すると必ずコストがかかります。\n- 仕様は、関連する先行事例として、より古い Bonded Fungible Tokens の構想（ERC-1671）を挙げています。\n"},"ko":{"lang":"ko","tldr":"어떤 ERC-721 NFT에든 별도의 본딩 커브 \"셰어\" 컨트랙트를 붙이는 표준 초안. 사람들이 공식으로 정해진 가격에 셰어를 사고팔 수 있고, NFT 소유자는 모든 거래에서 보장된 수수료를 얻는다.","tags":["nft","erc721","bonding-curve","liquidity","defi"],"related":[721,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7649/","markdown":"## 어떤 문제를 해결하나요?\n\nNFT는 나눌 수 없는 단일 아이템이라 유동성이 부족한 경우가 많습니다. 어느 순간에는 구매자가 없을 수 있고, 소량만 가지는 방법도 없습니다. 컨트랙트가 공급량의 함수로 항상 가격을 제시하는 본딩 커브는 지속적인 유동성을 제공하지만, 기존 [ERC-721](/eip-721/) 토큰에 이를 붙이는 표준 방법은 없었습니다.\n\nERC-7649는 **ERC-721을 수정하지 않고** NFT에 \"Tradeable Shares\" 컨트랙트를 덧붙이는 방법을 정의합니다. 저자들이 동기로 드는 예시는 AI 모델이나 GPU, 스토리지 풀을 나타내는 NFT이며, 셰어에 대한 수요가 그 자원의 가치를 보여 줍니다.\n\n## 어떻게 동작하나요?\n\n- **별도의 컨트랙트.** 각 셰어 컨트랙트는 대상 NFT 하나를 가리킵니다(`getSharesSubject()`가 ERC-721 주소와 토큰 ID를 반환). NFT 컨트랙트 자체는 바뀌지 않습니다.\n- **본딩 커브.** `getPrice(supply, amount)`는 현재 `supply`에서 `amount`개 셰어의 가격을 정의합니다. 제작자는 매개변수(기울기, 절편)나 곡선 모양까지도 사용자 정의할 수 있습니다.\n- **매수와 매도.** `buyShares(amount)` / `buySharesTo(amount, beneficiary)`는 커브 가격에 수수료를 더한 값으로 셰어를 mint하고, `sellShares(amount)` / `sellSharesTo(...)`는 셰어를 burn하고 대금을 지급합니다. 첫 번째 셰어는 현재 NFT 소유자만 살 수 있고, 마지막 셰어는 팔 수 없습니다.\n- **가격 견적.** `getBuyPrice`, `getSellPrice`와 각각의 `...AfterFee` 변형이 있으며, 현재 공급량이나 임의의 가상 공급량에 대해 쓸 수 있습니다.\n- **셰어는 전송할 수 없습니다.** 컨트랙트에서 사고 컨트랙트에 되팔 수만 있습니다. `getSharesBalance`와 `getSharesSupply`가 `balanceOf` / `totalSupply` 역할을 합니다.\n- **보장된 제작자 수수료.** 모든 거래에서 발행자에게 수수료가 지급되며, 발행자는 현재 NFT를 소유한 사람입니다(`getSharesIssuer()`). `getFeePercent()`는 소수점 18자리를 사용합니다(`1e18` = 100 %). 구현은 수수료를 프로토콜, 보유자, 대상 사이에 나눌 수 있습니다.\n- **결제.** 네이티브 ETH 또는 [ERC-20](/eip-20/) 토큰(또는 둘 다).\n- `Trade` 이벤트가 모든 매수와 매도를 기록하며, `getTradeVolume()`은 증가만 합니다.\n\n## 샘플 코드\n\nETH로 셰어를 구매하고 되팔 때의 가치를 확인(ethers v6):\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider, formatEther } from \"ethers\";\n\nconst abi = [\n  \"function getSharesSubject() view returns (tuple(address tokenAddress, uint256 tokenId))\",\n  \"function getBuyPriceAfterFee(uint256 amount) view returns (uint256)\",\n  \"function getSellPriceAfterFee(uint256 amount) view returns (uint256)\",\n  \"function getSharesBalance(address holder) view returns (uint256)\",\n  \"function buyShares(uint256 amount) payable\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst trader = new Wallet(process.env.TRADER_KEY!, provider);\nconst shares = new Contract(process.env.SHARES!, abi, trader);\n\nconst subject = await shares.getSharesSubject();\nconsole.log(\"NFT:\", subject.tokenAddress, subject.tokenId.toString());\n\nconst cost = await shares.getBuyPriceAfterFee(2n);\nawait (await shares.buyShares(2n, { value: cost })).wait();\n\nconst bal = await shares.getSharesBalance(trader.address);\nconsole.log(\"could sell now for\", formatEther(await shares.getSellPriceAfterFee(bal)), \"ETH\");\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 보안 고려 사항이 일반적인 수준이며 인터페이스가 바뀔 수 있습니다.\n- 수수료는 *현재* NFT 소유자에게 가는데, 소유자는 (프런트러닝을 포함해) 언제든 바뀔 수 있습니다. 클라이언트는 `getSharesIssuer()`가 그대로일 것이라고 가정하면 안 됩니다.\n- 본딩 커브 셰어는 초기 구매자에게 유리합니다. 수요가 줄면 나중에 산 사람은 가치 대부분을 잃을 수 있습니다. 매수와 매도 모두 수수료가 있으므로 왕복 거래에는 항상 비용이 듭니다.\n- 명세는 관련된 선행 작업으로 더 오래된 Bonded Fungible Tokens 아이디어(ERC-1671)를 언급합니다.\n"},"zh":{"lang":"zh","tldr":"草案标准：为任意 ERC-721 NFT 附加一个独立的联合曲线\"份额\"合约，让人们可以按公式确定的价格买卖份额，而 NFT 的所有者在每笔交易中都能获得有保证的手续费。","tags":["nft","erc721","bonding-curve","liquidity","defi"],"related":[721,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7649/","markdown":"## 它解决什么问题？\n\nNFT 是单一、不可分割的物品，所以往往缺乏流动性：在任意时刻可能没有买家，也无法持有它的一小部分仓位。联合曲线（bonding curve）由合约根据供应量始终给出价格，可以提供持续的流动性，但此前没有标准方式把它附加到现有的 [ERC-721](/eip-721/) token 上。\n\nERC-7649 定义了如何 **在不修改 ERC-721 的前提下** 给 NFT 加装一个\"Tradeable Shares\"合约。作者举的动机案例是代表 AI 模型或 GPU、存储池的 NFT，份额的需求反映了该资源的价值。\n\n## 它如何运作\n\n- **独立的合约。** 每个份额合约指向一个标的 NFT（`getSharesSubject()` 返回 ERC-721 地址和 token ID）。NFT 合约本身保持不变。\n- **联合曲线。** `getPrice(supply, amount)` 在当前 `supply` 下定义 `amount` 份额的价格。创建者可以自定义参数（斜率、截距），甚至曲线的形状。\n- **买入和卖出。** `buyShares(amount)` / `buySharesTo(amount, beneficiary)` 按曲线价格加手续费 mint 份额；`sellShares(amount)` / `sellSharesTo(...)` 销毁份额并付款。第一份份额只能由当前的 NFT 所有者购买，最后一份份额不能卖出。\n- **价格报价。** `getBuyPrice`、`getSellPrice` 及其 `...AfterFee` 版本，既可按当前供应量，也可按任意假设的供应量计算。\n- **份额不可转让。** 它们只能从合约买入并卖回给合约。`getSharesBalance` 和 `getSharesSupply` 起到 `balanceOf` / `totalSupply` 的作用。\n- **有保证的创作者手续费。** 每笔交易都向发行者支付手续费，发行者即当前拥有该 NFT 的人（`getSharesIssuer()`）。`getFeePercent()` 使用 18 位小数（`1e18` = 100 %）。实现可以在协议、持有者和标的之间分配手续费。\n- **支付。** 原生 ETH 或 [ERC-20](/eip-20/) 代币（或两者皆可）。\n- `Trade` 事件记录每一笔买入和卖出，`getTradeVolume()` 只增不减。\n\n## 示例代码\n\n用 ETH 购买份额并查看卖回价值（ethers v6）：\n\n```ts\nimport { Contract, Wallet, JsonRpcProvider, formatEther } from \"ethers\";\n\nconst abi = [\n  \"function getSharesSubject() view returns (tuple(address tokenAddress, uint256 tokenId))\",\n  \"function getBuyPriceAfterFee(uint256 amount) view returns (uint256)\",\n  \"function getSellPriceAfterFee(uint256 amount) view returns (uint256)\",\n  \"function getSharesBalance(address holder) view returns (uint256)\",\n  \"function buyShares(uint256 amount) payable\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst trader = new Wallet(process.env.TRADER_KEY!, provider);\nconst shares = new Contract(process.env.SHARES!, abi, trader);\n\nconst subject = await shares.getSharesSubject();\nconsole.log(\"NFT:\", subject.tokenAddress, subject.tokenId.toString());\n\nconst cost = await shares.getBuyPriceAfterFee(2n);\nawait (await shares.buyShares(2n, { value: cost })).wait();\n\nconst bal = await shares.getSharesBalance(trader.address);\nconsole.log(\"could sell now for\", formatEther(await shares.getSellPriceAfterFee(bal)), \"ETH\");\n```\n\n## 需要注意\n\n- **状态：Draft。** 安全考量比较笼统，接口可能变化。\n- 手续费归 *当前* 的 NFT 所有者，而所有者可能随时变化（包括通过抢跑）。客户端不得依赖 `getSharesIssuer()` 保持不变。\n- 联合曲线份额奖励早期买家；如果需求下降，后来的买家可能损失大部分价值。买入和卖出都有手续费，意味着一来一回总是要花钱。\n- 规范提到较早的 Bonded Fungible Tokens 构想（ERC-1671）作为相关的在先工作。\n"}}}
