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

Matthew Fox 🌐 pfp
Matthew Fox 🌐
@matthewfox
Like this Both actions same screen, approve loops back on route and mint proceeds to a watch tx stage *I should have made he button actions change to highlight actions better https://mint.enjoyment.network
1 reply
0 recast
1 reaction

Greg pfp
Greg
@greg
what if the user approved once and then tries to mint again? have you figured out a way to check for approvals or you just make the user do it every time?
4 replies
0 recast
0 reaction

Mark Carey πŸŽ©πŸ«‚ pfp
Mark Carey πŸŽ©πŸ«‚
@markcarey
I do this in my /toka frame. Before rendering the "Approve" button, my code checks the allowance of the user's verified address: const allowance = await degen.allowance(userAddress, spenderAddress); Then if the allowance is sufficient, I skip the "Approve" button and go straight to the Mint button.
1 reply
0 recast
0 reaction

Greg pfp
Greg
@greg
But you don’t know if the user is going to end up transacting with their verified address, right? I can have 0x1234 as a verification but transact in a frame from 0x5678
1 reply
0 recast
1 reaction