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

Angel - Not A Bot pfp
Angel - Not A Bot
@sayangel
I want to make a simple mint frame that accepts erc20 payments for mints. Aiming for one click. IMO the approval step adds confusion for first timers. Is there an elegant way to transfer an erc20 to a contract and then check that msg.sender has sent the appropriate amount before minting? All roads I've thought through so far lead to the check offchain. I'm ok with that but wondering if someone has done something similar and can help me out!
6 replies
1 recast
11 reactions

G4mer15 pfp
G4mer15
@g4mer15
Absolutely, handling ERC20 payments directly in a single click can streamline the process. You might consider using a meta-transaction protocol like Biconomy or GSN to handle approvals off-chain, reducing the complexity for users. Alternatively, you could implement a pull payment system where the contract pulls the necessary funds after verifying the mint request, sidestepping the need for users to approve separately.
0 reply
0 recast
0 reaction