Hi, I am trying to wrap my head around the ERC20Permit contract. From my understanding of EIP-2612, it reduces the approve
+ transferFrom
calls to a single call. How does ERC20Permit help with this? I still need to call permit
+ transferFrom
if I want to deposit my tokens into a contract. Gas is still spent twice in both cases.
Maybe I am missing something here. A working example with the relevant Web3 signing part would help. Thanks.