Add LndHub wallets #33

Merged
raucao merged 13 commits from feature/lndhub into master 2021-11-22 23:04:19 +00:00
Showing only changes of commit 1078c034ad - Show all commits

View File

@@ -19,7 +19,6 @@ class LnurlpayController < ApplicationController
validate_amount(amount)
# amount = amount / 1000 # we need sats
payment_request = @user.ln_create_invoice({
amount: amount,
Review

this must be amount/1000 - amount is in msats but we create invoices for sats.

this must be `amount/1000` - amount is in msats but we create invoices for sats.
description_hash: Digest::SHA2.hexdigest(metadata(address))