Skip to content

Commit

Permalink
proper black fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Feb 13, 2025
1 parent a9c6593 commit 56951e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/daemon.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" A daemon to run tests on settlements.
"""A daemon to run tests on settlements.
An infinite loop is started which listens to CoW Protocol trade events. If such an event happens,
the correstonding transaction hash is added to the queue of the individual tests.
Expand Down
4 changes: 1 addition & 3 deletions src/monitoring_tests/buffers_monitoring_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def compute_buffers_value(self) -> bool:
decimals = int(token["tokenInfo"]["decimals"])
if token["tokenInfo"]["price"] is not False:
price_in_usd = token["tokenInfo"]["price"]["rate"]
token_buffer_value_in_usd = (
balance / 10**decimals
) * price_in_usd
token_buffer_value_in_usd = (balance / 10**decimals) * price_in_usd
# in case some price is way off and it blows a lot the total value held in the
# smart contract we use a second price feed, from coingecko, to correct in case
# the initial price is indeed off
Expand Down

0 comments on commit 56951e5

Please sign in to comment.