Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Feature Request: Implement Token Paymaster Integration #129

Open
1 task done
joepegler opened this issue Nov 24, 2024 · 0 comments
Open
1 task done

✨ Feature Request: Implement Token Paymaster Integration #129

joepegler opened this issue Nov 24, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@joepegler
Copy link
Collaborator

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.
@joepegler joepegler added the enhancement New feature or request label Nov 24, 2024
@joepegler joepegler self-assigned this Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant