From 439d64a08a0b3d5600af6cf20b6b92b279522ce3 Mon Sep 17 00:00:00 2001 From: sputn1ck Date: Tue, 25 Mar 2025 13:59:55 +0100 Subject: [PATCH] liquidity: skip asset channels in easy autoloop --- liquidity/liquidity.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liquidity/liquidity.go b/liquidity/liquidity.go index 52e92390..e2c19ee3 100644 --- a/liquidity/liquidity.go +++ b/liquidity/liquidity.go @@ -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