From c4bafc6c1d43cea5795b96cda8372928e63ddbe8 Mon Sep 17 00:00:00 2001 From: Boris Kovalskii <36034823+JustYay@users.noreply.github.com> Date: Mon, 15 Sep 2025 21:43:10 +0000 Subject: [PATCH] =?UTF-8?q?FIX=20"=D0=9D=D0=B0=D1=86=D0=B5=D0=BD=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=BD=D0=B0=20=D0=BF=D0=BB=D0=B0=D1=82=D0=B5=D0=B6?= =?UTF-8?q?=D0=B8=20=D0=B2=20=D0=B2=D0=B0=D0=BB=D1=8E=D1=82=D0=B5=20=D0=B2?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D1=86=D0=B5=D0=BD=D1=82=D0=B0=D1=85"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Для работы с процентами мы должны делить на 100 --- handlers/payments/currency_rates.py | 1 - 1 file changed, 1 deletion(-) diff --git a/handlers/payments/currency_rates.py b/handlers/payments/currency_rates.py index fc29045b..c730c835 100644 --- a/handlers/payments/currency_rates.py +++ b/handlers/payments/currency_rates.py @@ -69,7 +69,6 @@ async def get_rub_rate(quote: str, *, session: aiohttp.ClientSession | None = No rate = _q(Decimal("1") / rub_per_unit) if code != "RUB" and FX_MARKUP: - # FX_MARKUP задаётся в процентах (например, 30 = 30%), поэтому делим на 100 pct = Decimal(str(FX_MARKUP)) / Decimal("100") rate = _q(rate * (Decimal("1") + pct))