We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82631a3 commit 72d3247Copy full SHA for 72d3247
swap/src/cli/watcher.rs
@@ -107,6 +107,11 @@ impl Watcher {
107
108
// If the swap has to be refunded, do it in the background
109
if let Some(ExpiredTimelocks::Cancel { .. }) = new_timelock_status {
110
+ // If the swap is already refunded, we can skip the refund
111
+ if matches!(state, BobState::BtcRefunded(_)) {
112
+ continue;
113
+ }
114
+
115
// If the swap is already running, we can skip the refund
116
// The refund will be handled by the state machine
117
if let Some(current_swap_id) = self.swap_lock.get_current_swap_id().await {
0 commit comments