Skip to content

Commit 439d64a

Browse files
committed
liquidity: skip asset channels in easy autoloop
1 parent 014e919 commit 439d64a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

liquidity/liquidity.go

Lines changed: 2 additions & 0 deletions
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)