From d0a578244935f8e8a132c6fe6f465b889a982e17 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 26 Dec 2021 23:12:02 +0000 Subject: [PATCH] Correct price formula --- handler/agora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/agora.py b/handler/agora.py index dd3d1d8..3a5bf90 100644 --- a/handler/agora.py +++ b/handler/agora.py @@ -50,7 +50,7 @@ class Agora(object): rates = self.get_rates_all() min_amount = rates[currency] * float(settings.Agora.MinUSD) 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}" print("formula", price_formula) ad = self.agora.ad_create(