Correct price formula

This commit is contained in:
Mark Veidemanis 2021-12-26 23:12:02 +00:00
parent 3c7a6685b4
commit d0a5782449
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class Agora(object):
rates = self.get_rates_all() rates = self.get_rates_all()
min_amount = rates[currency] * float(settings.Agora.MinUSD) min_amount = rates[currency] * float(settings.Agora.MinUSD)
max_amount = rates[currency] * float(settings.Agora.MaxUSD) max_amount = rates[currency] * float(settings.Agora.MaxUSD)
price_formula = f"coingeckoxmrusd{currency.lower()}*{settings.Agora.Margin}" price_formula = f"coingeckoxmrusd*usd{currency.lower()}*{settings.Agora.Margin}"
# price_formula = f"coingeckoxmrusd*{settings.Agora.Margin}" # price_formula = f"coingeckoxmrusd*{settings.Agora.Margin}"
print("formula", price_formula) print("formula", price_formula)
ad = self.agora.ad_create( ad = self.agora.ad_create(