Skip to content

The big one, with colors

Compare
Choose a tag to compare
@C-Otto C-Otto released this 27 Jul 16:05
· 247 commits to main since this release

EDIT: Please use the fixed release: https://github.com/C-Otto/rebalance-lnd/releases/tag/v2.1

This is a big release, and it includes breaking changes. You may have a look at the previous release if you don't like this one.

Colors

The first thing you'll notice is that the output now uses colors, and that more information is shown. Please let me know how you like it!

Liquidity Limits vs. 50% ratio

Under the hood, the most important change is that the rebalance amount does not target a 50% ratio anymore.
While all previous versions worked towards a perfect 50/50 balance, from now on the script works towards having "enough" funds on both sides of the channels.
By default, those limits are both 1M sat for outbound liquidity (funds on your side of the channel) and inbound liquidity (funds on the remote side of the channel).
These values are configurable.

As such, if you use the script to send funds to a large (say, 50M sat) channel where 100% of the funds are on the remote side, you might end up with 1M / 49M. If you want to send more than that, you can specify the amount directly (-a), or use a higher value for --min-local.

This change also means that more funds may be taken out of a channel.
As an example, if you send 2M sat to a channel you specified using --to, the script automatically considers all channels as possible sources that have at least 1M + 2M sat of inbound liquidity, so that after the rebalance transaction the limit of 1M inbound liquidity still is met.

Fees

The previously introduced --econ-fee mode is now the default, and the old fee limits do not exist anymore.
As such, the script only allows rebalance transactions that are economically viable.
In short, the script only takes funds out of a channel if you'd earn more for routing those funds through the destination channel.
Please have a look at the README to read more about this reasoning.

The script automatically ignores channels that are "too expensive", so that the viable routes should be found more quickly.