This commit is contained in:
Tiago vasconcelos 2021-12-30 16:39:24 +00:00
parent 32ea1106f9
commit 17b13bb652

View file

@ -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: