@@ -105,6 +105,17 @@ type LoopOutQuoteRequest struct {
105
105
// final cltv delta values for the off-chain payments.
106
106
}
107
107
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
+
108
119
// LoopOutQuote contains estimates for the fees making up the total swap cost
109
120
// for the client.
110
121
type LoopOutQuote struct {
@@ -118,27 +129,6 @@ type LoopOutQuote struct {
118
129
// MinerFee is an estimate of the on-chain fee that needs to be paid to
119
130
// sweep the htlc.
120
131
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
142
132
143
133
// Time lock delta relative to current block height that swap server
144
134
// will accept on the swap initiation call.
@@ -185,23 +175,13 @@ type LoopInRequest struct {
185
175
186
176
// LoopInTerms are the server terms on which it executes charge swaps.
187
177
type 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
-
194
178
// MinSwapAmount is the minimum amount that the server requires for a
195
179
// swap.
196
180
MinSwapAmount btcutil.Amount
197
181
198
182
// MaxSwapAmount is the maximum amount that the server accepts for a
199
183
// swap.
200
184
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
205
185
}
206
186
207
187
// In contains status information for a loop in swap.
@@ -239,6 +219,10 @@ type LoopInQuote struct {
239
219
// MinerFee is an estimate of the on-chain fee that needs to be paid to
240
220
// sweep the htlc.
241
221
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
242
226
}
243
227
244
228
// SwapInfoKit contains common swap info fields.
0 commit comments