Move bank name definition

This commit is contained in:
Mark Veidemanis 2022-04-19 21:04:06 +01:00
parent cb70e7ad49
commit 8e867b8133
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 1 deletions

View File

@ -501,6 +501,7 @@ class LBTC(util.Base):
payment_details_text = self.markets.format_payment_details(currency, payment_details)
ad_text = self.markets.format_ad(asset, currency, payment_details_text)
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}"
form = {
@ -511,7 +512,6 @@ class LBTC(util.Base):
"track_max_amount": False,
"require_trusted_by_advertiser": False,
"online_provider": provider,
"bank_name": payment_details["bank"],
"display_reference": False,
}
if visible is False:
@ -523,6 +523,7 @@ class LBTC(util.Base):
form["msg"] = ad_text
form["min_amount"] = round(min_amount, 2)
form["max_amount"] = round(max_amount, 2)
form["bank_name"] = bank_name
if edit:
ad = self.lbtc.ad(ad_id=ad_id, **form)