Kasra Rahjerdi
@jc4p
everytime you do a two step approve->transfer flow in a mini app you should ask yourself βis there a better way to do this?β β most of the time there is
8 replies
3 recasts
55 reactions
nicholas π§¨
@nicholas
permit2 right?
2 replies
0 recast
5 reactions
Kasra Rahjerdi
@jc4p
i am a simple man i request the user do a transfer from an address to another directly off the erc20 contract then i check the metadata of that tx on my backend then i call an ownerOnly function to record it on my contract
0 reply
0 recast
1 reaction
Topocount
@topocount.eth
π this is the correct answer. A gasless signature is the way to go, regardless of how smart your account is. If you want to abstract this away with @privy 's apis that's okay (where the wallet generates a signature without user interaction), but the permit2 ecosystem is the optimal mix of security and UX.
1 reply
0 recast
1 reaction