From 17b13bb6527f5596f920d19ffa051dcbd1f35d3e Mon Sep 17 00:00:00 2001 From: Tiago vasconcelos Date: Thu, 30 Dec 2021 16:39:24 +0000 Subject: [PATCH] fix issue #452 --- lnbits/utils/exchange_rates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/utils/exchange_rates.py b/lnbits/utils/exchange_rates.py index 39e6a73a5..ab425c2a2 100644 --- a/lnbits/utils/exchange_rates.py +++ b/lnbits/utils/exchange_rates.py @@ -279,7 +279,7 @@ async def btc_price(currency: str) -> float: async def get_fiat_rate_satoshis(currency: str) -> float: - return int(100_000_000 / (await btc_price(currency))) + return float(100_000_000 / (await btc_price(currency))) async def fiat_amount_as_satoshis(amount: float, currency: str) -> int: