We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3d32c2 commit 93ff34fCopy full SHA for 93ff34f
1 file changed
wallets/server/protocols/nwc.js
@@ -1,8 +1,12 @@
1
import { WalletPermissionsError } from '@/wallets/client/errors'
2
import { NWC_PAY_INVOICE_METHOD, nwcTryRun, supportedMethods } from '@/wallets/lib/protocols/nwc'
3
+import { msatsSatsFloor } from '@/lib/format'
4
5
export const name = 'NWC'
6
7
+// AlbyHub's NWC only invoices whole sats as of https://github.com/getAlby/hub/commit/64afc2227f128cf4cd90daf0d844af48e3513166
8
+export const receivableMsats = msatsSatsFloor
9
+
10
export async function createInvoice ({ msats, description, expiry }, { url }, { signal }) {
11
const result = await nwcTryRun(
12
nwc => nwc.req('make_invoice', { amount: msats, description, expiry }),
0 commit comments