-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Don't show swaps as 'refundable' when there was no lockup tx #811
Conversation
@kiocosta is attempting to deploy a commit to the boltz Team on Vercel. A member of the Team first needs to authorize it. |
ff38c44
to
8618332
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late review, many of us are travelling. tACK from my side (no code review)
I tested the following 4 scenarios:
- paying correctly and letting a swap fail (e.g.
invoice.failedToPay
): displayed ✅ - paying an incorrect amount: displayed ✅
- letting a swap expire without paying: not displayed ✅
- With "paying them after they've expired (these were displayed);" you made it sound like you are already did Refund: use 3rd party blockexplorer endpoints to double check if a lockup address has funds #809 but that's not the case. All good, let's handle Refund: use 3rd party blockexplorer endpoints to double check if a lockup address has funds #809 separately. ✅
src/pages/Refund.tsx
Outdated
[swapStatusFailed.TransactionLockupFailed].includes( | ||
swap.status, | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[swapStatusFailed.TransactionLockupFailed].includes( | |
swap.status, | |
), | |
swapStatusFailed.TransactionLockupFailed === swap.status, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michael1011 done!
8618332
to
6d0655a
Compare
Closes #806
I have tested this by creating a few swaps and: