Skip to content

Refund failed swaps#519

Merged
tiero merged 41 commits into
vulpemventures:masterfrom
bordalix:refund_failed_swaps
Jan 2, 2024
Merged

Refund failed swaps#519
tiero merged 41 commits into
vulpemventures:masterfrom
bordalix:refund_failed_swaps

Conversation

@bordalix

@bordalix bordalix commented Jan 2, 2024

Copy link
Copy Markdown
Contributor

Implements refund of failed swaps.

Closes #514

There are 2 ways a user can refund a failed swap funding transaction:

  1. Paste JSON received from Boltz:

    • minimum JSON object: { blindingKey: <hex>, redeemScript: <hex> }
  2. In the case of a failed swap the funding transaction is marked as "Refundable" (visible on transaction list) and user is able to refund transaction after timelock expires.

@tiero please review

@tiero

tiero commented Jan 2, 2024

Copy link
Copy Markdown
Member

Comment thread src/pkg/boltz.ts Outdated
@tiero

tiero commented Jan 2, 2024

Copy link
Copy Markdown
Member

let's fix the CI and some left-over and LGTM

Comment thread src/extension/settings/menu-swaps.tsx
@tiero

tiero commented Jan 2, 2024

Copy link
Copy Markdown
Member

resolve conflicts, merged reload button PR @bordalix

Comment thread test/_regtest.ts Outdated
try {
return (await axios.get(`${APIURL}/blocks/tip/height`)).data;
} catch (_) {
return 100; // running inside Github CI we don't have net access

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you have Nigiri running, with a full Esplora instance

https://github.com/vulpemventures/marina/blob/master/.github/workflows/main.yml#L31-L35

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also you know your are in CI via process.env.CI

@tiero tiero merged commit 7e39876 into vulpemventures:master Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a settings screen to execute the refund path for LQ > LN swaps

2 participants