Skip to content

Commit

Permalink
Update ERC-7818: Move to Final
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
MASDXI authored Feb 18, 2025
1 parent 7057d01 commit 029c332
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ERCS/erc-7818.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 029c332

Please sign in to comment.