-
Notifications
You must be signed in to change notification settings - Fork 42
feat: auto-swaps #1266
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
base: master
Are you sure you want to change the base?
feat: auto-swaps #1266
Conversation
You can take this as a reference for implementing the fee check: BoltzExchange/boltz-client#423 |
@@ -435,7 +435,7 @@ func getMaxTotalRoutingFeeLimit(amountMsat uint64) ldk_node.MaxTotalRoutingFeeLi | |||
} | |||
} | |||
|
|||
func (ls *LDKService) SendPaymentSync(ctx context.Context, invoice string, amount *uint64) (*lnclient.PayInvoiceResponse, error) { | |||
func (ls *LDKService) SendPaymentSync(ctx context.Context, invoice string, amount *uint64, isHoldInvoice bool) (*lnclient.PayInvoiceResponse, error) { |
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.
I'm not sure this is the best way to do it. This method is SendPaymentSync
but now we are basically doing an async payment, right?
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.
edit: can we change it to timeout
rather than isHoldInvoice
?
TODOs
Shift Swaps from settings(Agreeed to do in follow-up)Add option to do one-time swaps(Agreeed to do in follow-up)Minor
LDK_NETWORK
config var should now beNETWORK
Testing