{"eip":5744,"title":"Latent Fungible Token","description":"An interface for tokens that become fungible after a period of time.","authors":["Cozy Finance (@cozyfinance)","Tony Sheng (@tonysheng)","Matt Solomon (@mds1)","David Laprade (@davidlaprade)","Payom Dousti (@payomdousti)","Chad Fleming (@chad-js)","Franz Chen (@Dendrimer)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2022-09-29","requires":[20,2612],"discussionsTo":"https://ethereum-magicians.org/t/eip-5744-latent-fungible-token/11111","repo":"ERCs","label":"ERC-5744","officialUrl":"https://eips.ethereum.org/EIPS/eip-5744","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5744.md","url":"https://eips.huatuo.xyz/eip-5744/","tldr":{"en":"An ERC-20 extension for tokens that start out locked per mint and only become freely fungible after a maturity delay, useful for vesting and minimum-deposit receipts.","ja":"ミントごとに最初はロックされ、満期までの遅延を経て初めて自由に代替可能になるトークンのための ERC-20 拡張。ベスティングや最低預入期間付きのレシートに役立つ。","ko":"민팅마다 처음에는 잠겨 있다가 만기 지연이 지나야 비로소 자유롭게 대체 가능해지는 토큰을 위한 ERC-20 확장. 베스팅과 최소 예치 기간이 있는 영수증에 유용하다.","zh":"一个 ERC-20 扩展，适用于每次铸造时先被锁定、在经过到期延迟后才变得可自由流通（同质化）的代币，适合用于归属（vesting）和最低存款期限的凭证。"},"tags":["token","erc20","vesting","defi","extension"],"explainers":{"en":{"lang":"en","tldr":"An ERC-20 extension for tokens that start out locked per mint and only become freely fungible after a maturity delay, useful for vesting and minimum-deposit receipts.","tags":["token","erc20","vesting","defi","extension"],"related":[20,2612],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-5744/","markdown":"## What problem does it solve?\n\nSome tokens should not be fully usable the moment they are minted:\n\n- **Vesting tokens** that must not be transferred until a vesting period ends.\n- **Receipt tokens** from a lending or insurance protocol that enforce a minimum deposit duration.\n\nProjects build this with custom logic, but wallets and integrators have no standard way to ask \"how much of this balance is actually usable now?\". ERC-5744 (\"Latent Fungible Token\") defines that interface on top of [ERC-20](/eip-20/).\n\n## How it works\n\nA latent fungible token is a normal ERC-20 with two additions:\n\n- `balanceOfMatured(user)` returns only the **matured** (fungible) part of a balance. `balanceOf` and `totalSupply` still count everything, matured or not.\n- `getMints(user)` returns every mint for a user as `MintMetadata { amount, time, delay }`: how much was minted, when (timestamp in seconds), and the delay in seconds until it matures. If maturity depends on something other than elapsed time, `delay` must be `type(uint256).max`.\n\nAn optional `mints(user, id)` returns a single mint by an implementation-defined ID.\n\nImplementations **may** make `transfer`, `transferFrom` and burns revert for immature tokens. A vesting token would do that; a receipt token might allow transfers at any time and only use maturity elsewhere. The token must implement ERC-20's optional `name` / `symbol`, and they must reflect the underlying token in some way.\n\nThe spec lists [ERC-2612](/eip-2612/) (`permit`) as a requirement.\n\n## Sample code\n\nReading usable vs. total balance (ethers v6):\n\n```ts\nimport { Contract, JsonRpcProvider, formatUnits } from \"ethers\";\n\nconst abi = [\n  \"function balanceOf(address) view returns (uint256)\",\n  \"function balanceOfMatured(address) view returns (uint256)\",\n  \"function getMints(address) view returns (tuple(uint256 amount, uint256 time, uint256 delay)[])\",\n  \"function decimals() view returns (uint8)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.TOKEN!, abi, provider);\n\nconst user = process.env.USER_ADDRESS!;\nconst [total, matured, mints, dec] = await Promise.all([\n  token.balanceOf(user),\n  token.balanceOfMatured(user),\n  token.getMints(user),\n  token.decimals(),\n]);\n\nconsole.log(\"total  :\", formatUnits(total, dec));\nconsole.log(\"usable :\", formatUnits(matured, dec));\n\nconst MAX = (1n \u003c\u003c 256n) - 1n;\nfor (const m of mints) {\n  const when = m.delay === MAX ? \"condition-based\" : new Date(Number(m.time + m.delay) * 1000).toISOString();\n  console.log(formatUnits(m.amount, dec), \"matures:\", when);\n}\n```\n\n## Things to know\n\n- Status is **Stagnant**: no recent activity, and it may never be finalized.\n- Do not assume `balanceOf` is spendable. Integrators (DEXs, lending markets) should use `balanceOfMatured` when the token may block immature transfers.\n- `getMints` returns an unbounded array. Iterating it on-chain can exceed the block gas limit; the spec suggests a paginated variant if a user may accumulate many mints.\n- Fully backward compatible with ERC-20 tools, which simply see the total balance.\n"},"ja":{"lang":"ja","tldr":"ミントごとに最初はロックされ、満期までの遅延を経て初めて自由に代替可能になるトークンのための ERC-20 拡張。ベスティングや最低預入期間付きのレシートに役立つ。","tags":["token","erc20","vesting","defi","extension"],"related":[20,2612],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-5744/","markdown":"## 何を解決するのか\n\nミントされた瞬間から完全に使えるべきではないトークンがあります。\n\n- ベスティング期間が終わるまで転送してはならない**ベスティングトークン**。\n- 最低預入期間を強制する、レンディングや保険プロトコルの**レシートトークン**。\n\nプロジェクトは独自ロジックでこれを実現していますが、ウォレットや連携先には「この残高のうち、今実際に使えるのはどれだけか」を尋ねる標準的な方法がありません。ERC-5744（「Latent Fungible Token」）は、[ERC-20](/eip-20/) の上にそのインターフェースを定義します。\n\n## 仕組み\n\nLatent Fungible Token は、2 つの追加がある通常の ERC-20 です。\n\n- `balanceOfMatured(user)` は、残高のうち**満期に達した**（代替可能になった）部分だけを返します。`balanceOf` と `totalSupply` は、満期かどうかにかかわらず、すべてを数えます。\n- `getMints(user)` は、ユーザーのすべてのミントを `MintMetadata { amount, time, delay }` として返します。ミントされた量、時刻（秒単位のタイムスタンプ）、満期までの遅延（秒）です。満期が経過時間以外に依存する場合、`delay` は `type(uint256).max` でなければなりません。\n\n任意の `mints(user, id)` は、実装が定義する ID で 1 件のミントを返します。\n\n実装は、未満期のトークンに対する `transfer`、`transferFrom`、burn を revert させて**もよい**です。ベスティングトークンならそうするでしょう。レシートトークンは、いつでも転送を許可し、満期を別の場所でだけ使うかもしれません。トークンは ERC-20 の任意の `name` / `symbol` を実装しなければならず、それらは何らかの形で基礎となるトークンを反映していなければなりません。\n\n仕様は、[ERC-2612](/eip-2612/)（`permit`）を要件として挙げています。\n\n## サンプルコード\n\n利用可能な残高と合計の残高を読む（ethers v6）:\n\n```ts\nimport { Contract, JsonRpcProvider, formatUnits } from \"ethers\";\n\nconst abi = [\n  \"function balanceOf(address) view returns (uint256)\",\n  \"function balanceOfMatured(address) view returns (uint256)\",\n  \"function getMints(address) view returns (tuple(uint256 amount, uint256 time, uint256 delay)[])\",\n  \"function decimals() view returns (uint8)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.TOKEN!, abi, provider);\n\nconst user = process.env.USER_ADDRESS!;\nconst [total, matured, mints, dec] = await Promise.all([\n  token.balanceOf(user),\n  token.balanceOfMatured(user),\n  token.getMints(user),\n  token.decimals(),\n]);\n\nconsole.log(\"total  :\", formatUnits(total, dec));\nconsole.log(\"usable :\", formatUnits(matured, dec));\n\nconst MAX = (1n \u003c\u003c 256n) - 1n;\nfor (const m of mints) {\n  const when = m.delay === MAX ? \"condition-based\" : new Date(Number(m.time + m.delay) * 1000).toISOString();\n  console.log(formatUnits(m.amount, dec), \"matures:\", when);\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。最近の動きはなく、確定しない可能性があります。\n- `balanceOf` が使える残高だと思い込まないでください。トークンが未満期の転送をブロックする可能性がある場合、連携先（DEX、レンディング市場）は `balanceOfMatured` を使うべきです。\n- `getMints` は上限のない配列を返します。オンチェーンで反復するとブロックのガスリミットを超える可能性があります。ユーザーが多数のミントを蓄積しうる場合、仕様はページネーション版を提案しています。\n- ERC-20 のツールとは完全に後方互換です。それらは単に合計残高を見ます。\n"},"ko":{"lang":"ko","tldr":"민팅마다 처음에는 잠겨 있다가 만기 지연이 지나야 비로소 자유롭게 대체 가능해지는 토큰을 위한 ERC-20 확장. 베스팅과 최소 예치 기간이 있는 영수증에 유용하다.","tags":["token","erc20","vesting","defi","extension"],"related":[20,2612],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-5744/","markdown":"## 어떤 문제를 해결하나요?\n\n일부 토큰은 민팅되는 순간부터 완전히 사용할 수 있어서는 안 됩니다.\n\n- 베스팅 기간이 끝나기 전에는 전송하면 안 되는 **베스팅 토큰**.\n- 최소 예치 기간을 강제하는 대출 또는 보험 프로토콜의 **영수증 토큰**.\n\n프로젝트들은 자체 로직으로 이를 구현하지만, 지갑과 통합 서비스에는 \"이 잔액 중 지금 실제로 쓸 수 있는 양이 얼마인가?\"를 물어볼 표준 방법이 없습니다. ERC-5744(\"Latent Fungible Token\")는 [ERC-20](/eip-20/) 위에 그 인터페이스를 정의합니다.\n\n## 어떻게 동작하나요?\n\n잠재 대체 가능 토큰(latent fungible token)은 두 가지가 추가된 일반 ERC-20입니다.\n\n- `balanceOfMatured(user)`는 잔액 중 **만기가 된**(대체 가능해진) 부분만 반환합니다. `balanceOf`와 `totalSupply`는 만기 여부와 관계없이 여전히 전부를 셉니다.\n- `getMints(user)`는 사용자의 모든 민팅을 `MintMetadata { amount, time, delay }`로 반환합니다. 얼마나 민팅되었는지, 언제(초 단위 타임스탬프), 만기까지의 지연(초)입니다. 만기가 경과 시간 외의 것에 달려 있다면 `delay`는 반드시 `type(uint256).max`여야 합니다.\n\n선택적인 `mints(user, id)`는 구현이 정의하는 ID로 민팅 하나를 반환합니다.\n\n구현은 만기가 안 된 토큰에 대해 `transfer`, `transferFrom`, 소각(burn)을 revert하게 **할 수 있습니다**. 베스팅 토큰은 그렇게 할 것이고, 영수증 토큰은 언제든 전송을 허용하고 만기는 다른 곳에서만 사용할 수도 있습니다. 토큰은 ERC-20의 선택 사항인 `name` / `symbol`을 구현해야 하며, 이들은 어떤 방식으로든 기초 토큰을 반영해야 합니다.\n\n스펙은 [ERC-2612](/eip-2612/)(`permit`)를 요구 사항으로 명시합니다.\n\n## 샘플 코드\n\n사용 가능한 잔액과 전체 잔액 읽기(ethers v6):\n\n```ts\nimport { Contract, JsonRpcProvider, formatUnits } from \"ethers\";\n\nconst abi = [\n  \"function balanceOf(address) view returns (uint256)\",\n  \"function balanceOfMatured(address) view returns (uint256)\",\n  \"function getMints(address) view returns (tuple(uint256 amount, uint256 time, uint256 delay)[])\",\n  \"function decimals() view returns (uint8)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.TOKEN!, abi, provider);\n\nconst user = process.env.USER_ADDRESS!;\nconst [total, matured, mints, dec] = await Promise.all([\n  token.balanceOf(user),\n  token.balanceOfMatured(user),\n  token.getMints(user),\n  token.decimals(),\n]);\n\nconsole.log(\"total  :\", formatUnits(total, dec));\nconsole.log(\"usable :\", formatUnits(matured, dec));\n\nconst MAX = (1n \u003c\u003c 256n) - 1n;\nfor (const m of mints) {\n  const when = m.delay === MAX ? \"condition-based\" : new Date(Number(m.time + m.delay) * 1000).toISOString();\n  console.log(formatUnits(m.amount, dec), \"matures:\", when);\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 최근 활동이 없으며 확정되지 않을 수도 있습니다.\n- `balanceOf`가 사용 가능한 잔액이라고 가정하지 마세요. 토큰이 만기 전 전송을 막을 수 있다면 통합 서비스(DEX, 대출 시장)는 `balanceOfMatured`를 써야 합니다.\n- `getMints`는 크기 제한이 없는 배열을 반환합니다. 온체인에서 순회하면 블록 가스 한도를 넘을 수 있습니다. 사용자가 많은 민팅을 쌓을 수 있다면 스펙은 페이지네이션 방식을 제안합니다.\n- ERC-20 도구와 완전히 하위 호환됩니다. 이들은 단순히 전체 잔액을 봅니다.\n"},"zh":{"lang":"zh","tldr":"一个 ERC-20 扩展，适用于每次铸造时先被锁定、在经过到期延迟后才变得可自由流通（同质化）的代币，适合用于归属（vesting）和最低存款期限的凭证。","tags":["token","erc20","vesting","defi","extension"],"related":[20,2612],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-5744/","markdown":"## 它解决什么问题？\n\n有些代币不应该在铸造的那一刻就完全可用：\n\n- **归属代币**（vesting tokens），在归属期结束前不得转让。\n- 借贷或保险协议的**凭证代币**，用于强制最短存款期限。\n\n项目用自定义逻辑实现这些，但钱包和集成方没有标准方式来询问\"这笔余额现在实际可用多少？\"。ERC-5744（\"Latent Fungible Token\"）在 [ERC-20](/eip-20/) 之上定义了这个接口。\n\n## 它如何运作\n\n潜在同质化代币（latent fungible token）是在普通 ERC-20 基础上增加两样东西：\n\n- `balanceOfMatured(user)` 只返回余额中**已到期**（可同质化流通）的部分。`balanceOf` 和 `totalSupply` 仍然统计全部，无论是否到期。\n- `getMints(user)` 以 `MintMetadata { amount, time, delay }` 的形式返回某用户的每一次铸造：铸造了多少、何时铸造（以秒为单位的时间戳），以及距离到期的延迟（秒）。如果到期取决于经过时间以外的因素，`delay` 必须是 `type(uint256).max`。\n\n可选的 `mints(user, id)` 通过由实现自行定义的 ID 返回单次铸造。\n\n实现**可以**让 `transfer`、`transferFrom` 和销毁对未到期的代币 revert。归属代币会这样做；凭证代币则可能允许随时转让，只在其他地方使用到期信息。代币必须实现 ERC-20 可选的 `name` / `symbol`，并且它们必须以某种方式反映底层代币。\n\n规范将 [ERC-2612](/eip-2612/)（`permit`）列为必需项。\n\n## 示例代码\n\n读取可用余额与总余额（ethers v6）：\n\n```ts\nimport { Contract, JsonRpcProvider, formatUnits } from \"ethers\";\n\nconst abi = [\n  \"function balanceOf(address) view returns (uint256)\",\n  \"function balanceOfMatured(address) view returns (uint256)\",\n  \"function getMints(address) view returns (tuple(uint256 amount, uint256 time, uint256 delay)[])\",\n  \"function decimals() view returns (uint8)\",\n];\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst token = new Contract(process.env.TOKEN!, abi, provider);\n\nconst user = process.env.USER_ADDRESS!;\nconst [total, matured, mints, dec] = await Promise.all([\n  token.balanceOf(user),\n  token.balanceOfMatured(user),\n  token.getMints(user),\n  token.decimals(),\n]);\n\nconsole.log(\"total  :\", formatUnits(total, dec));\nconsole.log(\"usable :\", formatUnits(matured, dec));\n\nconst MAX = (1n \u003c\u003c 256n) - 1n;\nfor (const m of mints) {\n  const when = m.delay === MAX ? \"condition-based\" : new Date(Number(m.time + m.delay) * 1000).toISOString();\n  console.log(formatUnits(m.amount, dec), \"matures:\", when);\n}\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**：近期没有动静，可能永远不会定稿。\n- 不要假定 `balanceOf` 是可花费的。当代币可能阻止未到期代币的转让时，集成方（DEX、借贷市场）应使用 `balanceOfMatured`。\n- `getMints` 返回一个无界数组。在链上遍历它可能超出区块 gas 上限；如果用户可能积累大量铸造记录，规范建议使用分页版本。\n- 与 ERC-20 工具完全向后兼容，这些工具只会看到总余额。\n"}}}
