Content pfp
Content
@
0 reply
0 recast
0 reaction

Greg pfp
Greg
@greg
how are frame devs doing ERC20 approval flows?
6 replies
1 recast
46 reactions

Ben Adamsky pfp
Ben Adamsky
@ba
Using c.contract on frog which is pretty straightforward to set up Here's a gist on it https://gist.github.com/benadamsky/0a28fe9ee6130b11a60febd3776d3754
1 reply
0 recast
0 reaction

Greg pfp
Greg
@greg
ah sorry I should have specified - meant more like checking if a user already has an approval before making them do it, so its not unnecessarily called if they reuse the frame
1 reply
0 recast
0 reaction

Ben Adamsky pfp
Ben Adamsky
@ba
Oh gotcha, why not then just conditionally render buttons based on allowance? Only tricky part is assuming which wallet is used based on verifications since fc still doesn't have primary address If that's the main issue then I'm also curious how others are dealing with that as well, we're just forcing approvals atm
1 reply
0 recast
0 reaction