The push notification's amtPaidSat was read from request.invoiceAmount, which is the gross amount the payer pays over Lightning (e.g. 1003 sats). The receiver actually claims response.onchainAmount, which is net of Boltz fees (e.g. 1000 sats). Prefer onchainAmount so the notification shows what was received; fall back to invoiceAmount only when the wallet registered a swap without the Boltz response. Tests now use distinct gross/net amounts to guard the distinction. Co-authored-by: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| deliveryRetry.test.ts | ||
| groundControlNotifier.test.ts | ||
| helpers.ts | ||
| ntfyNotifier.test.ts | ||
| paymentFlow.test.ts | ||
| paymentService.test.ts | ||
| registry.test.ts | ||