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

FR: checkEligibility in account-kit results in a sponsorhip, but I can't use it #872

Open
moldy530 opened this issue Jul 29, 2024 · 0 comments

Comments

@moldy530
Copy link
Collaborator

moldy530 commented Jul 29, 2024

checkEligibilty results in a consumed sponsorship when used with alchemy, to mitigate this, this method should return a more detailed result that includes the UO that is being sponsored so that afterwards I can sign and send that UO

Discussed in #867

Originally posted by HatimPatwa July 26, 2024

Gas Sponsorship Eligibility Check API increases the maxCounts of the policy

According to my current wallet flow, when the user lands on transaction summary page where we show the amounts, gas fees etc.

Since we use smart accounts and have paymasters policies, on this page we do call the GasSponsorshipEligibily API to check for his eligibility and show on UI accordingly, and since he is on the summary page he can truthfully go back if he changes his mind about the transaction and can do so multiple times.

The issue is this API call increases the maxCountspersender cap of the policy, meaning even without actually proceeding with the transaction his eligibility gets depleted every time he visits the summary page only??

Is there a better way to check eligibility without having this side effect..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant