-
Notifications
You must be signed in to change notification settings - Fork 368
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
Missing chain #331
Comments
Check |
Thanks, got rid of this error. But now I have new ones These are the contracts: I added the chainId 1088 to the constants.py _netid_to_name dict. When I try to call the get_price_input(token1, token2, amount) method I get
self.quoter uses the quoter_addr "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6" which does not exist on Metis. |
The quoter contract address is hardcoded here: https://github.com/uniswap-python/uniswap-python/blob/47ae05d24622d5565fb938b5fb7c3959c07973ab/uniswap/uniswap.py#L178 |
I tried to use the package for the Metis Blockchain.
RPC: https://andromeda.metis.io/?owner=1088
ID: 1088
https://chainlist.org/chain/1088
`from uniswap import Uniswap
address = None # or None if you're not going to make transactions
private_key = None # or None if you're not going to make transactions
version = 2 # specify which version of Uniswap to use
provider = "https://andromeda.metis.io/?owner=1088" # can also be set through the environment variable
PROVIDER
uniswap = Uniswap(address=address, private_key=private_key, version=version, provider=provider)`
Error:
raise Exception(f"Unknown netid: {self.netid}") # pragma: no cover Exception: Unknown netid: 1088
How can I add the Metis Blockchain or is it even possible to use this package for the METIS Blockchain?
The text was updated successfully, but these errors were encountered: