Skip to content

✨ Feature Request: Implement Token Paymaster Integration #129

@joepegler

Description

@joepegler

Feature or Improvement Description

Create a new token paymaster client that allows users to pay for gas fees using ERC20 tokens. This will complement the existing Bico Paymaster implementation with token-based gas fee payment capabilities.

Benefits & Outcomes

  • Token Payment Support: Enable users to pay gas fees with ERC20 tokens
  • Flexibility: Provide alternative payment options beyond native token and sponsorship
  • DeFi Integration: Better support for DeFi applications where users hold tokens
  • User Experience: Allow users to stay within their preferred token ecosystem
  • Market Demand: Meet growing demand for token-based gas payment solutions

Implementation Ideas

  1. Create Token Paymaster Client

    • Create new createTokenPaymasterClient.ts
    • Define token paymaster types and interfaces
    • Implement token approval handling
    • Add gas price conversion logic
    • Handle token price feeds
  2. Token Paymaster Features

    • Token price oracle integration
    • Gas price estimation in tokens
    • Token allowance management
    • Multiple token support
    • Price feed fallback mechanisms
  3. Configuration Options

    • Token address configuration
    • Price feed sources
    • Slippage tolerance
    • Gas price buffer
    • Fallback options
  4. **Testing

Any References?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions