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