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
How to use with the Base chain? #380
Comments
here's my modified constants.py:
|
If anyone could please add compatibility to base it would be amazing. I've tried but to no avail. |
Hi, do you have the solution already? |
I have the same issue of "execution reverted", and the error starts from "self.router.functions". However, I know that Uniswap Base chain uses Universal Router (0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad). This router has different functions. Therefore, I think some new logic needs to be added into uniswap.py file. |
router: 0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24 |
Thanks! It works on swapping tokens on Uniswap V2, but do you also know the ROUTER of Uniswap V3 compiled with uniswap.py? |
Here are all the Uniswap Base deployed contracts for V3: https://docs.uniswap.org/contracts/v3/reference/deployments/base-deployments |
I have set up all the contracts as below, but still getting 'execution reverted' error.
|
Interesting. I am trying to do something similar with the official Typescript SDK, but I am running into a similar error. |
Not sure if it will help, but I resolved the issue I was running into after I learned the contract I was targeting was a different version. I discovered it my downloading the ABI directly from Etherscan and running a diff. Here is what I changed just in case it helps you: FYI I found some updated examples from Uniswap here: https://discord.com/channels/597638925346930701/607978109089611786/948847107744333844 Hope it helps! |
I tried adding the data to constants.py in a fork but still get "execution reverted"
Any ideas on how to make it work?
The text was updated successfully, but these errors were encountered: