New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"execution reverted" when using make_trade() #329
Comments
you might have to double check on the router abi vs the ones from this package |
Thanks @starascendin ! The ABI and the router address looks correct to me. I am testing this on mainnet. |
Not sure if |
tx = uniswap.make_trade(weth_address, token_address, qty=9000000000000000, slippage=0.3, fee=10000000) Also it looks like your slippage is also calculated wrong. It should be 0.3/100 as far I understand the docs. |
I got the same error,this is my args
this was traded on polygon |
I solved this problem. I set in the constants.py ETH_ADDRESS = "0x0000000000000000000000000000000000001010" |
Hello!
When trying to execute a swap using the make_trade() method I consistently get "web3.exceptions.ContractLogicError: execution reverted" error
This is the code that can be used to reproduce the error:
Checking the APE/WETH pair on the Uniswap UI it seems to exist and also has good amount of liquidity.
Am I doing something wrong there?
Here is the full trace of the error:
The text was updated successfully, but these errors were encountered: