Skip to content

bug: Fund Lock Period Between expiration and reclaimAfter Can Permanently Lock Funds #19

@pali101

Description

@pali101

Description

There is a logical flaw in the channel's lifecycle that creates a "dead period" where funds are inaccessible.

  1. redeemChannel (for the payee) reverts if block.timestamp > channel.expiration.
  2. reclaimChannel (for the payer) reverts if block.timestamp < channel.reclaimAfter.

Since createChannel ensures that expiration is before reclaimAfter, there is a window of time between these two timestamps where no one can access the funds. The payee is locked out, and the payer has not yet been granted access. This will result in funds being temporarily locked in the contract.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions