fixed conversion api

This commit is contained in:
Ben Arc 2022-03-10 12:16:51 +00:00
parent 30a0d6336b
commit 435b4056fd

View File

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