liquidity: skip asset channels in easy autoloop

This commit is contained in:
sputn1ck 2025-03-25 13:59:55 +01:00
parent 014e919402
commit 439d64a08a
No known key found for this signature in database
GPG key ID: 671103D881A5F0E4

View file

@ -594,12 +594,14 @@ func (m *Manager) dispatchBestEasyAutoloopSwap(ctx context.Context) error {
return err
}
usableChannels := make([]lndclient.ChannelInfo, 0, len(channels))
localTotal := btcutil.Amount(0)
for _, channel := range channels {
if channelIsCustom(channel) {
continue
}
localTotal += channel.LocalBalance
usableChannels = append(usableChannels, channel)
}
// Since we're only autolooping-out we need to check if we are below