Skip to content

feat(token): implement ERC-7818 expirable ERC-20 tokens #29

@jose-compu

Description

@jose-compu

Context

ERC-7818 (Expirable ERC-20) just reached Final. It defines tokens with a built-in expiration mechanism — useful for coupons, reward points, time-limited governance tokens, etc. Simple concept but no library implementation exists.

Scope

  • ERC7818.sol — ERC-20 extension with expiry timestamp per token batch
  • ERC7818Upgradeable.sol
  • Interface + events
  • Tests covering: minting with expiry, transfer of expired tokens (should revert), batch expiry, balanceOf that excludes expired tokens

Tier 4 but the implementation is relatively small and it fills a nice gap. Could be a good first issue for a contributor actually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomerssoliditySolidity smart contract implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions