mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
looprpc+cmd: deprecate dynamic terms
We move destination and cltv to QuoteResponse, and deprecate the non-static fields. Terms will now only show max/min swap sizes.
This commit is contained in:
parent
5fd51c0a3f
commit
0cff92d265
5 changed files with 114 additions and 184 deletions
|
|
@ -244,10 +244,6 @@ func (s *swapClientServer) LoopOutTerms(ctx context.Context,
|
|||
return &looprpc.TermsResponse{
|
||||
MinSwapAmount: int64(terms.MinSwapAmount),
|
||||
MaxSwapAmount: int64(terms.MaxSwapAmount),
|
||||
PrepayAmt: int64(terms.PrepayAmt),
|
||||
SwapFeeBase: int64(terms.SwapFeeBase),
|
||||
SwapFeeRate: int64(terms.SwapFeeRate),
|
||||
CltvDelta: int32(terms.CltvDelta),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
@ -269,6 +265,7 @@ func (s *swapClientServer) LoopOutQuote(ctx context.Context,
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &looprpc.QuoteResponse{
|
||||
MinerFee: int64(quote.MinerFee),
|
||||
PrepayAmt: int64(quote.PrepayAmount),
|
||||
|
|
@ -291,9 +288,6 @@ func (s *swapClientServer) GetLoopInTerms(ctx context.Context, req *looprpc.Term
|
|||
return &looprpc.TermsResponse{
|
||||
MinSwapAmount: int64(terms.MinSwapAmount),
|
||||
MaxSwapAmount: int64(terms.MaxSwapAmount),
|
||||
SwapFeeBase: int64(terms.SwapFeeBase),
|
||||
SwapFeeRate: int64(terms.SwapFeeRate),
|
||||
CltvDelta: int32(terms.CltvDelta),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue