Skip to content

Commit 9c3c462

Browse files
committed
liquidity: skip asset channels in easy autoloop
1 parent f2c3864 commit 9c3c462

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

liquidity/liquidity.go

+2
Original file line numberDiff line numberDiff line change
@@ -594,12 +594,14 @@ func (m *Manager) dispatchBestEasyAutoloopSwap(ctx context.Context) error {
594594
return err
595595
}
596596

597+
usableChannels := make([]lndclient.ChannelInfo, 0, len(channels))
597598
localTotal := btcutil.Amount(0)
598599
for _, channel := range channels {
599600
if channelIsCustom(channel) {
600601
continue
601602
}
602603
localTotal += channel.LocalBalance
604+
usableChannels = append(usableChannels, channel)
603605
}
604606

605607
// Since we're only autolooping-out we need to check if we are below

0 commit comments

Comments
 (0)