Hi all! I have a question about hardhat task with a uniswap liquidity pool.
When I try to create the liquidity pool via hardhat task, I get an error

Error: cannot estimate gas; transaction may fail or may require manual gas limit

A token which I provide to pool has allowance for a uniswap router contract.

Does somebody has any ideas please?

Apr 22, 2022, 6:17 PM
Guys need some suggestions please. When I create uniswap liquidity pool via addLiquidityETH() func at router contract. It creates transaction but status with error.

If I set optional parameter "value" to addLiquidityETH, I got a status with error

Fail with error 'UniswapV2Router: INSUFFICIENT_B_AMOUNT'

without him I got

Fail with error 'UniswapV2Library: INSUFFICIENT_AMOUNT'
Apr 22, 2022, 7:28 PM

© 2024 Draquery.com All rights reserved.