Bram N.

Results 22 comments of Bram N.

I got this message: Release of profile requested but WebEnginePage still not deleted. Expect troubles !

I am using Python 3.7

Ow okay, the git makes it sound like it's recommended to have python3.5, but not fixed on python3.5, so that was why I was thinking at least 3.5 My bad...

I could work around this by ``` w3.middleware_onion.inject(geth_poa_middleware, layer=0) quickswap = Uniswap(address=address, private_key=private_key, version=version, factory_contract_addr=factory_contract_addr, router_contract_addr=router_contract_addr, provider=provider, web3=w3) ``` However this still bring me to an error `ValueError: {'code': -32000,...

> Next, from what I see, the mentioned pool is a direct one. At the moment, there is no support for making swaps in this scenario as `make_trade()` just has...

> Provide more info then. Post whole code, just remove private key and wallet address. Post full exception trace log. That should work actually, can not say more w/o mentioned...

> Check if you added Matic chainId in `constants.py` correctly ``` # see: https://chainid.network/chains/ _netid_to_name = { 1: "mainnet", 3: "ropsten", 4: "rinkeby", 42: "kovan", 56: "binance", 97: "binance_testnet", 137:...

> Did you try to use actual numbers for gas? Something like `transaction["gas"] = Wei(2000000) ` instead of `transaction["gas"] = Wei(int(self.w3.eth.estimate_gas(transaction) * 1.2))` I adapted this somewhere in the code,...

``` if route is None: if self.version == 2: # If one of the tokens are WETH, delegate to appropriate call. # See: https://github.com/shanefontaine/uniswap-python/issues/22 if is_same_address(token0, self.get_weth_address()): return int(self._get_eth_token_input_price(token1, Wei(qty),...