Content pfp
Content
@
https://warpcast.com/~/channel/frames-devs
0 reply
0 recast
0 reaction

Greg pfp
Greg
@greg
how are frame devs doing ERC20 approval flows?
7 replies
0 recast
42 reactions

Stephan pfp
Stephan
@stephancill
I would probably do a generic “Approve and swap” button that both cases (if approved return swap data, if not approved, return approve data) and if the user hasn’t approved, the next screen has just “Swap”
2 replies
0 recast
1 reaction

Greg pfp
Greg
@greg
this would be nice but i dont think is possible ? would require the frame to know the users address at the time it POSTS to the transaction endpoint, and might also require the ability to redirect from a transaction endpoint which doesn’t seem to be possible. I could be misunderstanding though
1 reply
0 recast
0 reaction

K pfp
K
@kijijij
I believe this is possible - User clicks frame txn button and sends MM Address - Backend checks if Address has already approved the funds - if approved send swap transaction , if not then send approve transaction
0 reply
0 recast
0 reaction