vector
vector copied to clipboard
[router] Add ability to associate rebalance profiles to channels
In unidirectional cases (i.e. Carol -> Router -> Dave, Carol always sends), symmetrical rebalance profiles don't make sense.
The sender wants to have a target of 0 if they are never sending funds. We can allow this by adding endpoints to allow router operators to set rebalance profiles to specific channels.
List of tasks:
- [ ] Add rebalance profiles to the database.
- [ ] Add rebalance profile to channel binding in database model.
- [ ] Add endpoint to tie rebalance profile to channel.
- [ ] In rebalance code, first check the database for rebalance profile, otherwise fallback to default.