Fix invoice amount for lnurlp payments
Incoming amount is msats, but we create invoices with sats.
This commit is contained in:
parent
ac8552362c
commit
8b5bd66598
@ -20,7 +20,7 @@ class LnurlpayController < ApplicationController
|
|||||||
validate_amount(amount)
|
validate_amount(amount)
|
||||||
|
|
||||||
payment_request = @user.ln_create_invoice({
|
payment_request = @user.ln_create_invoice({
|
||||||
amount: amount,
|
amount: amount / 1000, # we create invoices in sats
|
||||||
description_hash: Digest::SHA2.hexdigest(metadata(address))
|
description_hash: Digest::SHA2.hexdigest(metadata(address))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user