Skip to content

ADR 003: reclaimExpired — channel expiry condition undefined #67

Closed

Description

@thiras

Category: Missing Specification

Severity: HIGH

File: adr/003-payments.md (~line 319)

The contract interface defines reclaimExpired(bytes32 channelId) but "expired" is never defined:

  • No expiresAt field exists in the channel struct
  • No specification of what causes a channel to expire
  • No documentation of when reclaimExpired can be called vs. closeChannel

Impact:
Without an expiry mechanism, clients cannot reclaim funds from dormant channels. If a provider disappears, client funds are locked indefinitely.

Recommendation:

  1. Add an expiresAt field to the channel struct, set at openChannel time (e.g., block.timestamp + channelLifetime)
  2. Specify channelLifetime as a governable parameter with safety bounds (e.g., 7–90 days)
  3. Document that reclaimExpired returns full remaining balance to the client when block.timestamp > expiresAt and no active dispute exists

ADRs affected

  • ADR 003 (Payment Model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:missing-decision

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions