- Notifications
You must be signed in to change notification settings - Fork388
Open
Description
Describe the bug
Actually I don't know whether it is a bug or it is my fault but whenever I call uniswap.close_position(pos_id) I get the following error:
{'jsonrpc': '2.0', 'id': 24, 'error': {'code': -32000, 'message': 'unknown account'}}
To Reproduce
This is the code I'm using:
address = "my_polygon_wallet_address" private_key = os.getenv("META_PK") version = 3 provider = "https://rpc-mainnet.maticvigil.com/" w3 = Web3(HTTPProvider(provider))w3.middleware_onion.inject(geth_poa_middleware, layer=0)uniswap = Uniswap(address=address, private_key=private_key, version=version, provider=provider, web3=w3)data = uniswap.get_liquidity_positions()response = uniswap.close_position(data[0])
Expected behavior
I would expect the position to be closed but I'm getting the error mentioned above
Additional context
I'm using Polygon network and a wallet from Metamask but I was receiving the same error on ETH Mainnet