multi: update docs and release notes to include peer level management

pull/333/head
carla 3 years ago
parent b9aae4f8f9
commit b393102696
No known key found for this signature in database
GPG Key ID: 4CA7FE54A6213C91

@ -23,27 +23,35 @@ Note that autoloop parameters and rules are not persisted, so must be set on
restart. We recommend running loopd with `--debuglevel=debug` when using this restart. We recommend running loopd with `--debuglevel=debug` when using this
feature. feature.
### Channel Thresholds ### Liquidity Targets
To setup the autolooper to dispatch swaps on your behalf, you need to tell it Autoloop can be configured to manage liquidity for individual channels, or for
which channels you would like it to perform swaps on, and the liquidity balance a peer as a whole. Peer-level liquidity management will examine the liquidity
you would like on each channel. Desired liqudity balance is expressed using balance of all the channels you have with a peer. This differs from channel-level
threshold incoming and outgoing percentages of channel capacity. The incoming liquidity, where each channel's individual balance is checked. Note that if you
threshold you specify indicates the minimum percentage of your channel capacity set a liquidity rule for a peer, you cannot also set a specific rule for one of
that you would like in incoming capacity. The outgoing thresold allows you to its channels.
reserve a percentage of your balance for outgoing capacity, but may be set to
zero if you are only concerned with incoming capcity. ### Liqudity Thresholds
To setup the autolooper to dispatch swaps on your behalf, you need to set the
The autolooper will perform swaps that push your incoming channel capacity to liquidity balance you would like for each channel or peer. Desired liquidity
at least the incoming threshold you specify, while reserving at least the balance is expressed using threshold incoming and outgoing percentages of
outgoing capacity threshold. Rules can be set as follows: capacity. The incoming threshold you specify indicates the minimum percentage
of your capacity that you would like in incoming capacity. The outgoing
threshold allows you to reserve a percentage of your balance for outgoing
capacity, but may be set to zero if you are only concerned with incoming
capacity.
The autolooper will perform swaps that push your incoming capacity to at least
the incoming threshold you specify, while reserving at least the outgoing
capacity threshold. Rules can be set as follows:
``` ```
loop setrule {short channel id} --incoming_threshold={minimum % incoming} --outgoing_threshold={minimum % outgoing} loop setrule {short channel id/ peer pubkey} --incoming_threshold={minimum % incoming} --outgoing_threshold={minimum % outgoing}
``` ```
To remove a channel from consideration, its rule can simply be cleared: To remove a rule from consideration, its rule can simply be cleared:
``` ```
loop setrule {short channel id} --clear loop setrule {short channel id/ peer pubkey} --clear
``` ```
## Fees ## Fees

@ -15,6 +15,11 @@ This file tracks release notes for the loop client.
## Next release ## Next release
#### New Features #### New Features
* Autoloop can now be configured on a per-peer basis, rather than only on an
individual channel level. This change allows desired liquidity thresholds
to be set for an individual peer, rather than a specific channel, and
leverages multi-loop-out to more efficiently manage liquidity. To configure
peer-level rules, provide the 'setrule' command with the peer's pubkey.
#### Breaking Changes #### Breaking Changes

Loading…
Cancel
Save