CoinAlpha / gateway-api

Apache License 2.0
47 stars 25 forks source link

[BUG] balancer error while running #139

Closed PtrckM closed 3 years ago

PtrckM commented 3 years ago

Build: Source and Docker Build Version: dev-0.43.0 / 0.8.0 & dev-0.9.0

2021-08-26 04:35:13,157 - 1 - hummingbot.connector.connector.balancer.balancer_connector - NETWORK - Error getting quote price for WETH-DAI  sell order for 0.03 amount.
Traceback (most recent call last):
  File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/site-packages/cachetools/cache.py", line 39, in __getitem__
    return self.__data[key]
KeyError: "((<hummingbot.connector.connector.balancer.balancer_connector.BalancerConnector object at 0x7fe07c2e6840>, 'WETH-DAI', False, Decimal('0.03')), {})"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hummingbot/hummingbot/core/utils/__init__.py", line 15, in memoize
    return cache[key]
  File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/site-packages/cachetools/ttl.py", line 84, in __getitem__
    return cache_getitem(self, key)
  File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/site-packages/cachetools/cache.py", line 41, in __getitem__
    return self.__missing__(key)
  File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/site-packages/cachetools/cache.py", line 68, in __missing__
    raise KeyError(key)
KeyError: "((<hummingbot.connector.connector.balancer.balancer_connector.BalancerConnector object at 0x7fe07c2e6840>, 'WETH-DAI', False, Decimal('0.03')), {})"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hummingbot/hummingbot/connector/connector/balancer/balancer_connector.py", line 216, in get_quote_price
    exceptions = check_transaction_exceptions(account_standing)
  File "/home/hummingbot/hummingbot/core/utils/ethereum.py", line 60, in check_transaction_exceptions
    if eth_balance < gas_cost:
TypeError: '<' not supported between instances of 'decimal.Decimal' and 'NoneType'

balancer3