Channel Rebalance
Circular Rebalance is a payment you make to *yourselves* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner.

Channel Peer: {{selChannel.alias | titlecase}}

Channel ID: {{selChannel.shortChannelId}}

{{inputFormLabel}}
Amount (Local Bal: {{selChannel?.toLocal}}, Remaining: {{selChannel?.toLocal - ((inputFormGroup.controls.rebalanceAmount.value) ? inputFormGroup.controls.rebalanceAmount.value : 0)}}) Sats Amount is required. Amount must be a positive number. Amount must be less than or equal to {{selChannel?.toLocal}}. Receive from Peer {{activeChannel.alias}} - {{activeChannel.shortChannelId}} Receive from Peer is required. Receive from Peer not found in the list.
Status
{{rebalanceStatus.invoice === '' ? 'Searching invoice...' : rebalanceStatus.flgReusingInvoice ? 'Invoice re-used' : 'Invoice generated'}}{{rebalanceStatus.invoice !== '' ? 'check' : 'close'}}
{{rebalanceStatus.invoice}}
{{rebalanceStatus.paymentStatus?.error ? 'Route search failed' : !rebalanceStatus.paymentStatus?.route ? 'Searching route...' : rebalanceStatus.paymentStatus?.type === 'pending' ? 'Route info pending...' : 'Route used'}}{{rebalanceStatus.paymentStatus?.route ? 'check' : 'close'}}
{{rt.nodeId}} ({{rt.shortChannelId}})
{{!rebalanceStatus.paymentStatus || rebalanceStatus.paymentStatus?.type === 'pending' ? 'Payment status waiting...' : rebalanceStatus.paymentStatus?.error ? 'Payment failed' : rebalanceStatus.paymentStatus?.type === 'sent' ? 'Payment successful' : ''}}{{!rebalanceStatus.paymentStatus || rebalanceStatus.paymentStatus?.error ? 'close' : 'check'}}

{{!rebalanceStatus.paymentStatus ? '' : rebalanceStatus.paymentStatus && rebalanceStatus.paymentStatus?.error ? 'Rebalance Failed.' : 'Rebalance Successful.'}}

Error: {{rebalanceStatus.paymentStatus.error}}

Total Fees (Sats)

{{rebalanceStatus.paymentStatus.feesPaid ? rebalanceStatus.paymentStatus.feesPaid / 1000 : 0}}

Number of Hops

{{rebalanceStatus.paymentStatus.route && rebalanceStatus.paymentStatus.route.length ? (rebalanceStatus.paymentStatus.route.length - 1) : 0}}

Payment Hash

{{rebalanceStatus.paymentHash}}

Payment ID

{{rebalanceStatus.paymentDetails.paymentId}}

Parent ID

{{rebalanceStatus.paymentDetails.parentId}}