Content
@
https://warpcast.com/~/channel/frames-devs
0 reply
0 recast
0 reaction
Greg
@greg
how are frame devs doing ERC20 approval flows?
7 replies
0 recast
42 reactions
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
@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
Stephan
@stephancill
sorry, didn't see you responded the user's address is included in the transaction data request payload now, so you can check if the user is approved or now and return different data depending on that
0 reply
0 recast
0 reaction