mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 02:28:10 +01:00
fixed conversion api
This commit is contained in:
parent
30a0d6336b
commit
435b4056fd
@ -573,6 +573,6 @@ async def api_fiat_as_sats(data: ConversionData):
|
||||
return output
|
||||
else:
|
||||
output[data.from_.upper()] = data.amount
|
||||
output["sats"] = await fiat_amount_as_satoshis(data.amount, data._from)
|
||||
output["sats"] = await fiat_amount_as_satoshis(data.amount, data.from_)
|
||||
output["BTC"] = output["sats"] / 100000000
|
||||
return output
|
||||
|
Loading…
Reference in New Issue
Block a user