@@ -105,6 +105,17 @@ type LoopOutQuoteRequest struct {
105105 // final cltv delta values for the off-chain payments.
106106}
107107
108+ // LoopOutTerms are the server terms on which it executes swaps.
109+ type LoopOutTerms struct {
110+ // MinSwapAmount is the minimum amount that the server requires for a
111+ // swap.
112+ MinSwapAmount btcutil.Amount
113+
114+ // MaxSwapAmount is the maximum amount that the server accepts for a
115+ // swap.
116+ MaxSwapAmount btcutil.Amount
117+ }
118+
108119// LoopOutQuote contains estimates for the fees making up the total swap cost
109120// for the client.
110121type LoopOutQuote struct {
@@ -118,27 +129,6 @@ type LoopOutQuote struct {
118129 // MinerFee is an estimate of the on-chain fee that needs to be paid to
119130 // sweep the htlc.
120131 MinerFee btcutil.Amount
121- }
122-
123- // LoopOutTerms are the server terms on which it executes swaps.
124- type LoopOutTerms struct {
125- // SwapFeeBase is the fixed per-swap base fee.
126- SwapFeeBase btcutil.Amount
127-
128- // SwapFeeRate is the variable fee in parts per million.
129- SwapFeeRate int64
130-
131- // PrepayAmt is the fixed part of the swap fee that needs to be
132- // prepaid.
133- PrepayAmt btcutil.Amount
134-
135- // MinSwapAmount is the minimum amount that the server requires for a
136- // swap.
137- MinSwapAmount btcutil.Amount
138-
139- // MaxSwapAmount is the maximum amount that the server accepts for a
140- // swap.
141- MaxSwapAmount btcutil.Amount
142132
143133 // Time lock delta relative to current block height that swap server
144134 // will accept on the swap initiation call.
@@ -185,23 +175,13 @@ type LoopInRequest struct {
185175
186176// LoopInTerms are the server terms on which it executes charge swaps.
187177type LoopInTerms struct {
188- // SwapFeeBase is the fixed per-swap base fee.
189- SwapFeeBase btcutil.Amount
190-
191- // SwapFeeRate is the variable fee in parts per million.
192- SwapFeeRate int64
193-
194178 // MinSwapAmount is the minimum amount that the server requires for a
195179 // swap.
196180 MinSwapAmount btcutil.Amount
197181
198182 // MaxSwapAmount is the maximum amount that the server accepts for a
199183 // swap.
200184 MaxSwapAmount btcutil.Amount
201-
202- // Time lock delta relative to current block height that swap server
203- // will accept on the swap initiation call.
204- CltvDelta int32
205185}
206186
207187// In contains status information for a loop in swap.
@@ -239,6 +219,10 @@ type LoopInQuote struct {
239219 // MinerFee is an estimate of the on-chain fee that needs to be paid to
240220 // sweep the htlc.
241221 MinerFee btcutil.Amount
222+
223+ // Time lock delta relative to current block height that swap server
224+ // will accept on the swap initiation call.
225+ CltvDelta int32
242226}
243227
244228// SwapInfoKit contains common swap info fields.
0 commit comments