mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
cmd: print quoted amount from InQuoteRequst
This commit is contained in:
parent
68baebf478
commit
39b3752480
1 changed files with 7 additions and 1 deletions
|
|
@ -233,7 +233,13 @@ func printQuoteInResp(req *looprpc.QuoteRequest,
|
|||
totalFee := resp.HtlcPublishFeeSat + resp.SwapFeeSat
|
||||
|
||||
if req.DepositOutpoints != nil {
|
||||
fmt.Printf(satAmtFmt, "Previously deposited on-chain:", req.Amt)
|
||||
if req.Amt == 0 {
|
||||
fmt.Printf(satAmtFmt, "Previously deposited "+
|
||||
"on-chain:", resp.QuotedAmt)
|
||||
} else {
|
||||
fmt.Printf(satAmtFmt, "Previously deposited "+
|
||||
"on-chain:", req.Amt)
|
||||
}
|
||||
} else {
|
||||
fmt.Printf(satAmtFmt, "Send on-chain:", req.Amt)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue