mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-04 18:33:10 +02:00
@@ -279,7 +279,7 @@ async def btc_price(currency: str) -> float:
|
|||||||
|
|
||||||
|
|
||||||
async def get_fiat_rate_satoshis(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:
|
async def fiat_amount_as_satoshis(amount: float, currency: str) -> int:
|
||||||
|
Reference in New Issue
Block a user