Uniswap / Uniswap/interface

Cant remove liquidity on V2. Confirm button does not work

Open
#6,288 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I added liquidity to a token and cant remove liquidity now. The confirm button does not work. If i check the consol, I receive the following error:

estimateGas failed removeLiquidityWithPermit (11) ['0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', '0xD502b4F13d0c66fFE6B144B7ccca29eB84fea8d9', '297924606778282', '5670605856141071', '4138933049269', '0xfAAB07FF10317Ff4b27a5aeb70760991BD993a51', 1680345647, false, 28, '0xa07c1322ae55a7ad4dcf35da877e6c71dfc0106f35e82273f01f91282be89fe7', '0x56778c793f3a1adc67604abf188fe2c6407eed1ecc0a36790a745d615e2d91b9'] Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="execution reverted: UniswapV2: INVALID_SIGNATURE", method="estimateGas", transaction={"from":"0xfAAB07FF10317Ff4b27a5aeb70760991BD993a51","to":"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D","data":"0x2195995c000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000d502b4f13d0c66ffe6b144b7ccca29eb84fea8d900000000000000000000000000000000000000000000000000010ef5fa5b5baa00000000000000000000000000000000000000000000000000142562cfb76f0f000000000000000000000000000000000000000000000000000003c3aba257b5000000000000000000000000faab07ff10317ff4b27a5aeb70760991bd993a510000000000000000000000000000000000000000000000000000000064280a2f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001ca07c1322ae55a7ad4dcf35da877e6c71dfc0106f35e82273f01f91282be89fe756778c793f3a1adc67604abf188fe2c6407eed1ecc0a36790a745d615e2d91b9","accessList":null}, error={"code":-32603,"message":"execution reverted: UniswapV2: INVALID_SIGNATURE","data":{"originalError":{"code":3,"data":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001c556e697377617056323a20494e56414c49445f5349474e415455524500000000","message":"execution reverted: UniswapV2: INVALID_SIGNATURE"}}}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.7.2)
at e.value (index.ts:269:28)
at e.value (index.ts:281:20)
at x (json-rpc-provider.ts:78:20)
at n. (json-rpc-provider.ts:642:20)
at l (runtime.js:64:40)
at Generator. (runtime.js:299:22)
at Generator.throw (runtime.js:124:21)
at f (6.46e90cad.chunk.js:2:1409420)

Token address is 0xD502b4F13d0c66fFE6B144B7ccca29eB84fea8d9 and its renounced. Worked all properly in testnet, but not in mainnet.

can anyone help? I tried WETH, increased slip, and only 1%, but wont work at all

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the V2 remove-liquidity confirmation flow and the removeLiquidityWithPermit estimateGas call; the report identifies index.ts, json-rpc-provider.ts, and the confirm button as entry points. Reproduce the mainnet case with the reported token address and inspect the INVALID_SIGNATURE error, then verify that confirmation can proceed without that failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.