Hi, I am forking uniswap, I modificated everything and deployed my contracts. I can create a liquidity pool and make a deposit, but I can't remove liquidity and swap tokens. I have this issue when i try to remove liquidity : estimateGas failed 0 removeLiquidityWithPermit, and when I swap I have the issue : Gas estimate failed, trying eth_call to extract error, with function swapExactETHForTokensSupportingFeeOnTransferTokens" Anyone knows how to solve this please ?

May 20, 2021, 12:17 PM
Do you pay enough gas? 😛
May 20, 2021, 12:18 PM
The transaction does not go to Metamask, so I can't fix the gas yet
May 20, 2021, 12:21 PM
Do you use Remix or Truffle?
May 20, 2021, 12:27 PM
I test the code in the frontend
May 20, 2021, 12:27 PM
Then it must be a issue in the frontend?
May 20, 2021, 12:30 PM
I try using remiw directly, it is not working neither, i have the issue : "code": 3, "message": "execution reverted: ds-math-sub-underflow", "data":
May 20, 2021, 12:38 PM
Send the contract code here
May 20, 2021, 1:04 PM
I found this topic I am trying to properly redeploy to check it
May 20, 2021, 1:05 PM
I have the same question. I don't know it too.
May 20, 2021, 2:43 PM
Is from/to declared?
You should replace those with recipient and sender.
@maxwellhammer may I ask, out of curiosity: why do you need a blacklist function?
Ah, that would work on ETH.
May 20, 2021, 3:16 PM
yes thats what was wrong haha my bad
May 20, 2021, 3:16 PM
Np!
May 20, 2021, 3:16 PM
Error! Invalid constructor arguments provided. Please verify that they are in ABI-encoded format
I'm getting this error while trying to verify contract
but the contract worked fine in remix
anyone here have a solution to this?
im on a deadline and need to do this asap, sorry haha
could someone here verify it on bscscan for me if I give you the contract and sol file
yo can someone help please
I tried flattening but it didnt work
May 20, 2021, 4:21 PM

© 2024 Draquery.com All rights reserved.