mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
liquidity: skip asset channels in easy autoloop
This commit is contained in:
parent
014e919402
commit
439d64a08a
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue