EatTheBlocks Forum

Uniswap fork: remove poll liquidity error(

Hello, I get this error (contract UniswapV2ERC20) from permit fucntion:


when call 2 fuction:


I can’t understand what’s wrong. The most frightening thing is that after a while it passed. But when I deployed on ropsten it happend again.

Steps by step:

  1. Copy Uniswap factory code and router code from etherscan
  2. Go to Remix
  3. Replace factory contract. Compile and deploy
  4. Replace router contract. Compile and deploy
  5. Replace contracts addresses in the interface
  6. Start interface. Create pair. 2-3 swaps
  7. Fail when remove liqudity

Remix info
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? execution reverted: Clickswap: INVALID_SIGNATURE { "originalError": { "code": 3, "data": "0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001c436c69636b737761703a20494e56414c49445f5349474e415455524500000000", "message": "execution reverted: Clickswap: INVALID_SIGNATURE" } }

Etherscan info

Thank you in advance)

Dont call the functions with withPermit. It’s only in the case of delegation.
There are other functions to remove liquidity by the liquidity provider himself.