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

Permit3 with 6492 and hooks #68

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Permit3 with 6492 and hooks #68

wants to merge 8 commits into from

Conversation

amiecorso
Copy link
Contributor

@amiecorso amiecorso commented Feb 25, 2025

Exploring the possibility of using ERC-6492 prepareData mechanism to enable the necessary spend preparation steps in simple spend cases for arbitrary smart wallets in a way completely opaque to app devs.

Pros:

  • If every wallet supports the generation of 6492 signatures and implements the corresponding utility/hook contract for setting up its onchain smart account, this approach successfully achieves a simple hot path for using Permit3 with any implementation of a smart wallet, completely abstracted from app developers, one-click for users.

Cons:

  • more onchain complexity in the implementation of smart account Permit3Utilities
  • Not all wallets might implement 6492, and in this case apps still need to set up approvals/ensure funds are available to Permit3, which creates an even worse hot path in this case that also has two branches (6492 v.s. not) than if hooks were used in all cases (without 6492 path)

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

Successfully merging this pull request may close these issues.

2 participants