-
Notifications
You must be signed in to change notification settings - Fork 7
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
Batching (accountCreation +) addOwnerAddress(spendPermissions) + approve(user, protocol, ....) + (more...) #25
Comments
Sorry for the long delay with a response, and thanks for taking the time to ping us! Batching One example we're entertaining for example is creating a "sub-account" and giving it a Spend Permission over a "main account" to withdraw assets. For example, spawning an investing account that can continually withdraw from savings to allocate into different investments. Does this example match your intention with the code snippet? |
I see I see, thought it might work if calldata is executed sequentially that by the time it reaches the approve, its good to go. We are working on consumer, targeting non-Web3 natives as well, so the intention is to see what the limits are wrt getting users onboard with Smart Accounts. We desperately want to avoid Web2 flows with centralized SSOs controlling SCAs, its imo a very bad pattern that might lessen the perceived security assumptions of wallets by newer entrants. It should always be a passkey at the very least. At the same time I suspect newer entrants might have trouble performing multiple operations (understanding what it all is in the first place) Just to paint a picture of an ideal flow:
Whereby the Batch is comprised of:
The above flow is currently working 1-sig gasless (Token/ETH to Token + rest of the batch), but only for EOAs, or existing SCAs |
Hi there,
first and foremost thank you for fleshing out an AA native "Permit2"
Would be particularly interested if the AA / Spend-Permission architecture would allow a batch / zap style onboarding to AA + SpendPermissions contract + dApp,
and if it is generally recommended to compress user actions all-in-one (balance between convenient UX vs. establishing expectations of "signing long jsons" > users being overloaded with TypedData > reading them less > potentially getting rekt in the future)
would love to hear your thoughts.
Vaguely fleshed out snippet below:
The text was updated successfully, but these errors were encountered: