Open
Description
Hi,
Uniswap-python supports the Polygon version of Uniswap, right?
I get keyerror: polygon when I try this test example:
from uniswap import Uniswap
address = "0xxxx"
private_key ="xxxx"
version = 2
provider = "https://polygon-mainnet.g.alchemy.com/v2/Nxxxxxx"
uniswap = Uniswap(address=address, private_key=private_key, version=version, provider=provider)
eth = "0x0000000000000000000000000000000000000000"
bat = "0x0D8775F648430679A709E98d2b0Cb6250d2887EF"
dai = "0x6B175474E89094C44Da98b954EedeAC495271d0F"
uniswap.get_price_input(eth, dai, 1018)
uniswap.get_price_output(eth, dai, 1_000 * 1018)