vulpemventures / marina

Liquid Wallet browser extension
MIT License
35 stars 16 forks source link

Refund failed swaps #519

Closed bordalix closed 8 months ago

bordalix commented 8 months ago

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 commented 8 months ago

Test failing, conversion of types needed? @bordalix

https://github.com/vulpemventures/marina/actions/runs/7385223231/job/20089560550

tiero commented 8 months ago

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

tiero commented 8 months ago

resolve conflicts, merged reload button PR @bordalix