mirror of
https://github.com/lnbits/lnbits.git
synced 2025-08-08 17:22:14 +02:00
Add Satoshis as Currency Option Nostr NIP-5
This commit is contained in:
@@ -201,7 +201,7 @@
|
||||
dense
|
||||
v-model.trim="formDialog.data.amount"
|
||||
label="Amount"
|
||||
placeholder="10.00"
|
||||
placeholder="How much do you want to charge?"
|
||||
></q-input>
|
||||
<q-input
|
||||
filled
|
||||
@@ -293,6 +293,7 @@
|
||||
domains: [],
|
||||
addresses: [],
|
||||
currencyOptions: [
|
||||
'Satoshis',
|
||||
'USD',
|
||||
'EUR',
|
||||
'GBP',
|
||||
|
@@ -196,6 +196,9 @@ async def api_address_create(
|
||||
)
|
||||
|
||||
address = await create_address_internal(domain_id=domain_id, data=post_data)
|
||||
if domain.currency == "Satoshis":
|
||||
price_in_sats = domain.amount
|
||||
else:
|
||||
price_in_sats = await fiat_amount_as_satoshis(domain.amount / 100, domain.currency)
|
||||
|
||||
try:
|
||||
|
Reference in New Issue
Block a user