From 029c332bafe197f1bcc56429c009c973365d2f04 Mon Sep 17 00:00:00 2001 From: sirawt <31649128+MASDXI@users.noreply.github.com> Date: Tue, 18 Feb 2025 23:18:51 +0700 Subject: [PATCH] Update ERC-7818: Move to Final Merged by EIP-Bot. --- ERCS/erc-7818.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ERCS/erc-7818.md b/ERCS/erc-7818.md index 7d6ac03958..1655b0fdb1 100644 --- a/ERCS/erc-7818.md +++ b/ERCS/erc-7818.md @@ -4,8 +4,7 @@ title: Expirable ERC-20 description: An ERC-20 extension for creating fungible tokens with expiration, supporting time-limited use cases. author: sirawt (@MASDXI), ADISAKBOONMARK (@ADISAKBOONMARK) discussions-to: https://ethereum-magicians.org/t/erc-7818-expirable-erc20/21655 -status: Last Call -last-call-deadline: 2025-02-07 +status: Final type: Standards Track category: ERC created: 2024-11-13 @@ -163,7 +162,7 @@ interface IERC7818 is IERC20 { ### Behavior Specification - `balanceOf` **MUST** return the total balance of tokens held by an account that are still valid (i.e., have not expired). This includes any tokens associated with specific epochs, provided they remain within their validity duration. Expired tokens **MUST NOT** be included in the returned balance, ensuring that only actively usable tokens are reflected in the result. -- `balanceOfAtEpoch` **MUST** returns the balance of tokens held by an account at the specified `epoch`, If the specified epoch is expired, this function **MUST** return `0`. +- `balanceOfAtEpoch` **MUST** return the balance of tokens held by an account at the specified `epoch`. If the specified epoch is expired, this function **MUST** return `0`. For example, if `epoch` 5 has expired, calling `balanceOfByEpoch(5, address)` returns `0` even if there were tokens previously held in that epoch. - `currentEpoch` **MUST** return the current `epoch` of the contract. - `epochLength` **MUST** return duration between `epoch` in blocks or time in seconds.