@@ -116,14 +116,23 @@ func getLimits(amt btcutil.Amount, quote *looprpc.QuoteResponse) *limits {
116
116
}
117
117
}
118
118
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
+
120
122
totalSuccessMax := l .maxMinerFee + l .maxSwapFee
121
123
if l .maxSwapRoutingFee != nil {
122
124
totalSuccessMax += * l .maxSwapRoutingFee
123
125
}
124
126
if l .maxPrepayRoutingFee != nil {
125
127
totalSuccessMax += * l .maxPrepayRoutingFee
126
128
}
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
+ }
127
136
128
137
fmt .Printf ("Max swap fees for %d Loop %v: %d\n " ,
129
138
btcutil .Amount (amt ), swapType , totalSuccessMax ,
@@ -139,7 +148,10 @@ func displayLimits(swapType loop.Type, amt btcutil.Amount, l *limits) error {
139
148
return nil
140
149
case "x" :
141
150
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
+ }
143
155
144
156
if l .maxSwapRoutingFee != nil {
145
157
fmt .Printf ("Max off-chain swap routing fee: %d\n " ,
0 commit comments