Skip to content

Feature: Support ERC-2612 (permit) for Gasless Token Approvals #16

@pali101

Description

@pali101

Description

Add support for EIP-2612 permit so that users can create payment channels for ERC-20 tokens without a prior on-chain approve transaction. This allows gasless approval with a signed message, improving user experience and reducing friction.

Acceptance Criteria

  • Implement createChannelWithPermit() function
  • Accepts permit signature parameters and calls the token’s permit() before transferring tokens
  • Reverts with a custom error DepositWithPermitNotSupportedForNative() if used with Native token
  • Fully tested with USDFC (EIP-2612 compliant token)

Reference

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