recently I made a swap from ETH to WETH and immediately after that tried to grant another contract approval to spend my WETH. The TX immediately failed after it was created and was never submitted. Why is this? My guess is that I didn't wait for enough block confirmations before making the spend approval TX, but if this is the case how many block confirmations should a wait for next time to avoid this in the future? Is is different for each ERC-20 token approval?
Thank you for helping me understand this better!
Edit: I tried looking for the failed TXs in etherscan, but I can't find them? Weird. This occurred when I tried to approve UDST and WETH with the sudoswap.xyz contract.