Fix LBTC margins
This commit is contained in:
parent
ed3a0ca084
commit
2d9c458ce3
|
@ -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]
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue