mirror of https://github.com/lightninglabs/loop
liquidity: add swap suggestions for threshold rule for loop out
parent
cd8a7704af
commit
8db6b32d74
@ -0,0 +1,26 @@
|
||||
package liquidity
|
||||
|
||||
import (
|
||||
"github.com/btcsuite/btcutil"
|
||||
"github.com/lightningnetwork/lnd/lnwire"
|
||||
)
|
||||
|
||||
// LoopOutRecommendation contains the information required to recommend a loop
|
||||
// out.
|
||||
type LoopOutRecommendation struct {
|
||||
// Amount is the total amount to swap.
|
||||
Amount btcutil.Amount
|
||||
|
||||
// Channel is the target outgoing channel.
|
||||
Channel lnwire.ShortChannelID
|
||||
}
|
||||
|
||||
// newLoopOutRecommendation creates a new loop out swap.
|
||||
func newLoopOutRecommendation(amount btcutil.Amount,
|
||||
channelID lnwire.ShortChannelID) *LoopOutRecommendation {
|
||||
|
||||
return &LoopOutRecommendation{
|
||||
Amount: amount,
|
||||
Channel: channelID,
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue