@@ -775,10 +775,7 @@ message OutTermsResponse {
775775
776776message QuoteRequest {
777777 /*
778- The amount to swap in satoshis. In the loop-in case this can either be taken
779- from the connected lnd wallet or coin-selected from static address deposits.
780- This is controlled by the select_deposits flag. If deposit_outpoints are
781- specified, the coins are taken out of that.
778+ The amount to swap in satoshis.
782779 */
783780 int64 amt = 1 ;
784781
@@ -826,9 +823,8 @@ message QuoteRequest {
826823
827824 /*
828825 Static address deposit outpoints that will be quoted for. This option only
829- pertains to loop in swaps. If the amt field is set as well the respective
830- partial amount will be swapped. Cannot be used in conjunction with
831- auto_select_deposits.
826+ pertains to loop in swaps. Either this or the amt parameter can be set at
827+ the same time.
832828 */
833829 repeated string deposit_outpoints = 8 ;
834830
@@ -837,14 +833,6 @@ message QuoteRequest {
837833 be returned in the specified asset.
838834 */
839835 AssetLoopOutRequest asset_info = 9 ;
840-
841- /*
842- In the legacy loop-in case this field must be set to false.
843- If set to true, the swap amount will be automatically selected from the
844- static address deposits. If set to true, deposit_outpoints must be empty.
845- This option only pertains to loop in swaps.
846- */
847- bool auto_select_deposits = 10 ;
848836}
849837
850838message InQuoteResponse {
@@ -1922,12 +1910,6 @@ message Deposit {
19221910 loop-in swap anymore.
19231911 */
19241912 int64 blocks_until_expiry = 6 ;
1925-
1926- /*
1927- The swap hash of the swap that this deposit is part of. This field is only
1928- set if the deposit is part of a loop-in swap.
1929- */
1930- bytes swap_hash = 7 ;
19311913}
19321914
19331915message StaticAddressWithdrawal {
@@ -1989,11 +1971,6 @@ message StaticAddressLoopInSwap {
19891971 fees.
19901972 */
19911973 int64 payment_request_amount_satoshis = 5 ;
1992-
1993- /*
1994- The deposits that were used for this swap.
1995- */
1996- repeated Deposit deposits = 6 ;
19971974}
19981975
19991976enum StaticAddressLoopInSwapState {
@@ -2101,21 +2078,6 @@ message StaticAddressLoopInRequest {
21012078 side and the client can retry the swap with different parameters.
21022079 */
21032080 uint32 payment_timeout_seconds = 8 ;
2104-
2105- /*
2106- The optional swap amount the client is attempting to swap. It can be
2107- provided in combination with the outpoints or separately. If provided with
2108- outpoints the client takes out this amount from the sum of provided
2109- outpoints and sends the change back to the static address. If the amount is
2110- provided without outpoints, the client will select deposits automatically.
2111- The coin selection strategy is simplified by sorting all available deposits
2112- in descending order by amount, and equal amounts in ascending order of
2113- blocks until expiry, and then selecting the largest deposits first until the
2114- amount is reached. The change will be sent back to the static address. If a
2115- subset of outpoints suffice to cover the specified amount the swap will be
2116- canceled to allow the user to safe on transaction fees.
2117- */
2118- int64 amount = 9 ;
21192081}
21202082
21212083message StaticAddressLoopInResponse {
0 commit comments