We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68baebf commit 39b3752Copy full SHA for 39b3752
cmd/loop/quote.go
@@ -233,7 +233,13 @@ func printQuoteInResp(req *looprpc.QuoteRequest,
233
totalFee := resp.HtlcPublishFeeSat + resp.SwapFeeSat
234
235
if req.DepositOutpoints != nil {
236
- fmt.Printf(satAmtFmt, "Previously deposited on-chain:", req.Amt)
+ if req.Amt == 0 {
237
+ fmt.Printf(satAmtFmt, "Previously deposited "+
238
+ "on-chain:", resp.QuotedAmt)
239
+ } else {
240
241
+ "on-chain:", req.Amt)
242
+ }
243
} else {
244
fmt.Printf(satAmtFmt, "Send on-chain:", req.Amt)
245
}
0 commit comments