@@ -116,14 +116,23 @@ func getLimits(amt btcutil.Amount, quote *looprpc.QuoteResponse) *limits {
116116 }
117117}
118118
119- func displayLimits (swapType loop.Type , amt btcutil.Amount , l * limits ) error {
119+ func displayLimits (swapType loop.Type , amt btcutil.Amount , l * limits ,
120+ externalHtlc bool ) error {
121+
120122 totalSuccessMax := l .maxMinerFee + l .maxSwapFee
121123 if l .maxSwapRoutingFee != nil {
122124 totalSuccessMax += * l .maxSwapRoutingFee
123125 }
124126 if l .maxPrepayRoutingFee != nil {
125127 totalSuccessMax += * l .maxPrepayRoutingFee
126128 }
129+
130+ if swapType == loop .TypeIn && externalHtlc {
131+ fmt .Printf ("On-chain fee for external loop in is not " +
132+ "included.\n Sufficient fees will need to be paid " +
133+ "when constructing the transaction in the external " +
134+ "wallet.\n \n " )
135+ }
127136
128137 fmt .Printf ("Max swap fees for %d Loop %v: %d\n " ,
129138 btcutil .Amount (amt ), swapType , totalSuccessMax ,
@@ -139,7 +148,10 @@ func displayLimits(swapType loop.Type, amt btcutil.Amount, l *limits) error {
139148 return nil
140149 case "x" :
141150 fmt .Println ()
142- fmt .Printf ("Max on-chain fee: %d\n " , l .maxMinerFee )
151+ if swapType != loop .TypeIn || ! externalHtlc {
152+ fmt .Printf ("Max on-chain fee: %d\n " ,
153+ l .maxMinerFee )
154+ }
143155
144156 if l .maxSwapRoutingFee != nil {
145157 fmt .Printf ("Max off-chain swap routing fee: %d\n " ,
0 commit comments