@@ -1925,14 +1925,17 @@ func (s *swapClientServer) ListStaticAddressSwaps(ctx context.Context,
1925
1925
}
1926
1926
}
1927
1927
1928
+ swapAmount := swp .TotalDepositAmount ()
1928
1929
state := toClientStaticAddressLoopInState (swp .GetState ())
1929
- swapAmount := int64 (swp .TotalDepositAmount ())
1930
1930
payReqAmount := int64 (swapPayReq .MilliSat .ToSatoshis ())
1931
+ if swp .SelectedAmount > 0 {
1932
+ swapAmount = swp .SelectedAmount
1933
+ }
1931
1934
swap := & looprpc.StaticAddressLoopInSwap {
1932
1935
SwapHash : swp .SwapHash [:],
1933
1936
DepositOutpoints : swp .DepositOutpoints ,
1934
1937
State : state ,
1935
- SwapAmountSatoshis : swapAmount ,
1938
+ SwapAmountSatoshis : int64 ( swapAmount ) ,
1936
1939
PaymentRequestAmountSatoshis : payReqAmount ,
1937
1940
Deposits : protoDeposits ,
1938
1941
}
@@ -1945,9 +1948,9 @@ func (s *swapClientServer) ListStaticAddressSwaps(ctx context.Context,
1945
1948
}, nil
1946
1949
}
1947
1950
1948
- // GetStaticAddressSummary returns a summary static address related information.
1949
- // Amongst deposits and withdrawals and their total values it also includes a
1950
- // list of detailed deposit information filtered by their state.
1951
+ // GetStaticAddressSummary returns a summary of static address- related
1952
+ // information. Amongst deposits and withdrawals and their total values, it also
1953
+ // includes a list of detailed deposit information filtered by their state.
1951
1954
func (s * swapClientServer ) GetStaticAddressSummary (ctx context.Context ,
1952
1955
_ * looprpc.StaticAddressSummaryRequest ) (
1953
1956
* looprpc.StaticAddressSummaryResponse , error ) {
0 commit comments