diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e93b16a69..61d424105 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,19 +2,19 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/PyCQA/isort - rev: 5.9.3 + rev: 5.10.1 hooks: - id: isort - repo: https://github.com/psf/black - rev: 21.9b0 + rev: 22.1.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 3.9.2 + rev: 4.0.1 hooks: - id: flake8 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.1.0 hooks: - id: check-docstring-first - id: check-merge-conflict diff --git a/safe_transaction_service/history/services/balance_service.py b/safe_transaction_service/history/services/balance_service.py index 473d93372..e2fb092ad 100644 --- a/safe_transaction_service/history/services/balance_service.py +++ b/safe_transaction_service/history/services/balance_service.py @@ -269,10 +269,10 @@ def get_usd_balances( token_address = balance.token_address if not token_address: # Ether fiat_conversion = eth_price - fiat_balance = fiat_conversion * (balance.balance / 10 ** 18) + fiat_balance = fiat_conversion * (balance.balance / 10**18) else: fiat_conversion = eth_price * token_eth_value - balance_with_decimals = balance.balance / 10 ** balance.token.decimals + balance_with_decimals = balance.balance / 10**balance.token.decimals fiat_balance = fiat_conversion * balance_with_decimals balances_with_usd.append(