You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dear,
I use below code, but got 'TransferHelper: TRANSFER_FROM_FAILED', if I set AmountToSend then I got 'execution reverted: eth_estimateGas'. var func = new SwapExactTokensForTokensSupportingFeeOnTransferTokensFunction { AmountIn = amountIn, AmountOutMin = amountOutMin, Path = path, To = to, Deadline = deadline }; func.AmountToSend = 10000; var estimate = await uniswapV2Router02.ContractHandler.EstimateGasAsync(func);
The text was updated successfully, but these errors were encountered:
thank you very much, and do you mean Nethereum.Uniswap V2 and V3?
I use var estimate = await _web3.TransactionManager.EstimateGasAsync(new CallInput { From = to }); and it works but always got 53000 :(
dear,
I use below code, but got 'TransferHelper: TRANSFER_FROM_FAILED', if I set AmountToSend then I got 'execution reverted: eth_estimateGas'.
var func = new SwapExactTokensForTokensSupportingFeeOnTransferTokensFunction { AmountIn = amountIn, AmountOutMin = amountOutMin, Path = path, To = to, Deadline = deadline }; func.AmountToSend = 10000; var estimate = await uniswapV2Router02.ContractHandler.EstimateGasAsync(func);
The text was updated successfully, but these errors were encountered: