diff --git a/src/components/SwapChecker.tsx b/src/components/SwapChecker.tsx index 8c751edd..a357b1d5 100644 --- a/src/components/SwapChecker.tsx +++ b/src/components/SwapChecker.tsx @@ -131,9 +131,7 @@ class BoltzWebSocket { return; } - log.debug( - `WebSocket message: ${JSON.stringify(data, null, 2)}`, - ); + log.debug(`WebSocket message:`, data); if (data.event === "update" && data.channel === "swap.update") { const swapUpdates = data.args as SwapStatus[]; diff --git a/src/consts/SwapStatus.ts b/src/consts/SwapStatus.ts index a45f7545..d689431a 100644 --- a/src/consts/SwapStatus.ts +++ b/src/consts/SwapStatus.ts @@ -16,6 +16,7 @@ export const swapStatusFailed = { InvoiceFailedToPay: "invoice.failedToPay", TransactionFailed: "transaction.failed", TransactionLockupFailed: "transaction.lockupFailed", + TransactionRefunded: "transaction.refunded", }; export const swapStatusSuccess = { @@ -28,4 +29,5 @@ export const swapStatusFinal = [ swapStatusFailed.SwapExpired, swapStatusFailed.SwapRefunded, swapStatusFailed.InvoiceFailedToPay, + swapStatusFailed.TransactionRefunded, ].concat(Object.values(swapStatusSuccess));