Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
fix black indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Benzbeeb committed Mar 9, 2021
1 parent a14e85c commit b0c19e8
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions helpers/pyband/pyband/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"]),
Expand Down

0 comments on commit b0c19e8

Please sign in to comment.