boltz-backend icon indicating copy to clipboard operation
boltz-backend copied to clipboard

Add `swap.refunded` final swap state for normal swaps

Open kilrau opened this issue 1 year ago • 0 comments

Currently backend is unaware of refunds of normal swaps. It'd be nice to globally know which swaps were refunded by adding a swap.refunded final state for refundable normal swaps, meaning after invoice.failedToPay and also swap.expired. That would let web app query the state for features like below instead of saving this info locally which is error prone.

image

kilrau avatar Sep 18 '23 12:09 kilrau