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

Add an ERC20gatedPaymaster contract #12

Open
4 tasks
dutterbutter opened this issue Jul 31, 2023 · 1 comment
Open
4 tasks

Add an ERC20gatedPaymaster contract #12

dutterbutter opened this issue Jul 31, 2023 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@dutterbutter
Copy link
Contributor

dutterbutter commented Jul 31, 2023

Paymaster Description

Objective: Implement an ERC20GatedPaymaster that covers gas fees for users based on their possession of a specific ERC20 token.

Functionality:

  • Before agreeing to pay the gas fee, the ERC20GatedPaymaster will verify if the user holds a certain ERC20 token in their account.
  • The user must have a balance greater than 0 of the specified ERC20 token to be eligible.
  • If eligible, the paymaster will cover the corresponding gas fees for the user's transaction.

Rationale

  1. Extended Utility for Tokens: This paymaster concept augments the utility of governance tokens and other ERC20 tokens. Token holders can engage in platform activities without the concern of gas fees.
  2. Innovative Use Cases: Projects can incentivize their communities to hold onto their tokens by offering gas-free transactions.
  3. Ease of Adoption: With the proliferation of ERC20 tokens in various projects, a ready-to-use ERC20GatedPaymaster can easily be adopted and integrated, making it a valuable tool for numerous projects.

Additional Information

  • Extending Considerations: While the primary check is for a non-zero balance, the contract can potentially be extended to require minimum token thresholds for different tiers of gas fee coverage.

Task deliverable

  • Adds ERC20GatedPaymaster contract
  • Add to the UI integration
  • Add unit tests
  • Updates readmes
@uF4No uF4No added good first issue Good for newcomers help wanted Extra attention is needed labels Aug 1, 2023
@matter-labs matter-labs deleted a comment from Thirawat11 Feb 16, 2024
@Ayoseun
Copy link

Ayoseun commented Mar 4, 2024

Is this issue still opened, can you please assign it to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants