From 21d4e0e4dfa9443160c4ba56dbea7c0cf2cf947e Mon Sep 17 00:00:00 2001 From: Padreug Date: Sat, 26 Sep 2026 14:26:29 +0200 Subject: [PATCH] fix(market): declare feeMsat on Order so the persisted fee is typed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `useLightningPayment` writes feeMsat onto the paid order, but `Order` never declared it. `updateOrder` takes `Partial`, and the write goes through an inferred variable, so the excess-property check never fired — the value landed in the store invisible to the type system and unreadable by any consumer. Co-Authored-By: Claude Opus 5 (1M context) --- src/modules/market/types/market.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/market/types/market.ts b/src/modules/market/types/market.ts index 7a3b8ca..ef88fad 100644 --- a/src/modules/market/types/market.ts +++ b/src/modules/market/types/market.ts @@ -129,6 +129,7 @@ export interface Order { originalOrderId?: string lightningInvoice?: any paymentHash?: string + feeMsat?: number // Routing fee paid on the Lightning payment, in millisats paidAt?: number paymentStatus?: 'pending' | 'paid' | 'expired' paid?: boolean // Direct boolean field matching nostrmarket reference