We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63f4188 commit b05f3caCopy full SHA for b05f3ca
swaps/swaps_service.go
@@ -199,13 +199,13 @@ func (svc *swapsService) EnableAutoSwapOut() error {
199
balance, err := svc.lnClient.GetBalances(ctx, false)
200
if err != nil {
201
logger.Logger.WithError(err).Error("Failed to get balance")
202
- return
+ continue
203
}
204
lightningBalance := uint64(balance.Lightning.TotalSpendable)
205
balanceThresholdMilliSats := balanceThreshold * 1000
206
if lightningBalance < balanceThresholdMilliSats {
207
logger.Logger.Info("Threshold requirements not met for swap, ignoring")
208
209
210
logger.Logger.WithFields(logrus.Fields{
211
"amount": amount,
0 commit comments