Fix LBTC margins

This commit is contained in:
Mark Veidemanis 2022-04-23 18:38:47 +01:00
parent ed3a0ca084
commit 2d9c458ce3
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
3 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ class Markets(util.Base):
if platform == "agora": if platform == "agora":
new_formula = f"coingecko{asset.lower()}usd*usd{currency.lower()}*{new_margin}" new_formula = f"coingecko{asset.lower()}usd*usd{currency.lower()}*{new_margin}"
elif platform == "lbtc": 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: for ad in our_ads:
ad_id = ad[0] ad_id = ad[0]
asset = ad[4] asset = ad[4]

View File

@ -510,7 +510,7 @@ class LBTC(util.Base):
min_amount, max_amount = self.money.get_minmax(self.platform, asset, currency) min_amount, max_amount = self.money.get_minmax(self.platform, asset, currency)
bank_name = payment_details["bank"] 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 = { form = {
"country_code": countrycode, "country_code": countrycode,
"currency": currency, "currency": currency,

View File

@ -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 = [ expected_to_update = [