Skip to content

Commit

Permalink
XEMM: Remove redundant conversion rate check
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHolyRoger committed Apr 1, 2021
1 parent 6ffac34 commit 3202168
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1164,11 +1164,8 @@ cdef class CrossExchangeMarketMakingStrategy(StrategyBase):
"""
Return price conversion rate for a taker market (to convert it into maker base asset value)
"""
if not self._use_oracle_conversion_rate:
return self._taker_to_maker_quote_conversion_rate / self._taker_to_maker_base_conversion_rate
else:
_, _, quote_rate, _, _, base_rate = self.get_taker_to_maker_conversion_rate()
return quote_rate / base_rate
_, _, quote_rate, _, _, base_rate = self.get_taker_to_maker_conversion_rate()
return quote_rate / base_rate
# else:
# market_pairs = list(self._market_pairs.values())[0]
# quote_pair = f"{market_pairs.taker.quote_asset}-{market_pairs.maker.quote_asset}"
Expand Down

0 comments on commit 3202168

Please sign in to comment.