From b0c19e87cba43bced6b90c4d7703ec22f56b0b85 Mon Sep 17 00:00:00 2001 From: Nattharat Wiriyakulnan Date: Tue, 9 Mar 2021 16:12:14 +0700 Subject: [PATCH] fix black indent --- helpers/pyband/pyband/client.py | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/helpers/pyband/pyband/client.py b/helpers/pyband/pyband/client.py index 6488c13f6b..18a266f474 100644 --- a/helpers/pyband/pyband/client.py +++ b/helpers/pyband/pyband/client.py @@ -121,9 +121,7 @@ def get_request_by_id(self, id: int) -> RequestInfo: config=DACITE_CONFIG, ) - def get_latest_request( - self, oid: int, calldata: bytes, min_count: int, ask_count: int - ) -> RequestInfo: + def get_latest_request(self, oid: int, calldata: bytes, min_count: int, ask_count: int) -> RequestInfo: return from_dict( data_class=RequestInfo, data=self._get_result( @@ -166,9 +164,7 @@ def get_request_id_by_tx_hash(self, tx_hash: HexBytes) -> List[int]: raise EmptyRequestMsgError("There is no request message in this tx") return request_ids - def get_reference_data( - self, pairs: List[str], min_count: int, ask_count: int - ) -> List[ReferencePrice]: + def get_reference_data(self, pairs: List[str], min_count: int, ask_count: int) -> List[ReferencePrice]: symbols = set([symbol for pair in pairs for symbol in pair.split("/") if symbol != "USD"]) data = self._post( "/oracle/request_prices", @@ -197,14 +193,8 @@ def get_reference_data( results.append( ReferencePrice( pair, - rate=( - int(symbol_dict[base_symbol]["px"]) - * int(symbol_dict[quote_symbol]["multiplier"]) - ) - / ( - int(symbol_dict[quote_symbol]["px"]) - * int(symbol_dict[base_symbol]["multiplier"]) - ), + rate=(int(symbol_dict[base_symbol]["px"]) * int(symbol_dict[quote_symbol]["multiplier"])) + / (int(symbol_dict[quote_symbol]["px"]) * int(symbol_dict[base_symbol]["multiplier"])), updated_at=ReferencePriceUpdated( int(symbol_dict[base_symbol]["resolve_time"]), int(symbol_dict[quote_symbol]["resolve_time"]),