diff --git a/handler/markets.py b/handler/markets.py index 4eb21dc..2cdc883 100644 --- a/handler/markets.py +++ b/handler/markets.py @@ -82,7 +82,7 @@ class Markets(util.Base): if platform == "agora": new_formula = f"coingecko{asset.lower()}usd*usd{currency.lower()}*{new_margin}" elif platform == "lbtc": - new_formula = f"btc_in_usd*{new_margin}" + new_formula = f"btc_in_usd*{new_margin}*USD_in_{currency}" for ad in our_ads: ad_id = ad[0] asset = ad[4] diff --git a/handler/sources/localbitcoins.py b/handler/sources/localbitcoins.py index 3d902ce..6401a39 100644 --- a/handler/sources/localbitcoins.py +++ b/handler/sources/localbitcoins.py @@ -510,7 +510,7 @@ class LBTC(util.Base): min_amount, max_amount = self.money.get_minmax(self.platform, asset, currency) bank_name = payment_details["bank"] - price_formula = f"btc_in_usd*{settings.LocalBitcoins.Margin}" + price_formula = f"btc_in_usd*{settings.LocalBitcoins.Margin}*USD_in_{currency}" form = { "country_code": countrycode, "currency": currency, diff --git a/handler/tests/common.py b/handler/tests/common.py index e35efab..4d33ff1 100644 --- a/handler/tests/common.py +++ b/handler/tests/common.py @@ -1,4 +1,4 @@ -expected_to_update_lbtc = [["1452045", "btc_in_usd*1.1", "BTC", "GBP", False]] +expected_to_update_lbtc = [["1452045", "btc_in_usd*1.1*USD_in_GBP", "BTC", "GBP", False]] expected_to_update = [