Uniswap: transferFrom error Dai/insufficient-allowance

Hi @seanoh1989,

Looking at the two transactions they were both to the same contract.

You need to call

  1. The token from your EOA to approve an allowance for your contract
  2. The contract from your EOA to do what you need to do and this can call transferFrom

I recommend going through: Example on how to use ERC20 token in another contract

1 Like