Just spoke to @erkarl about this. We came to the conclusion that it is wiser to place channel rebalancing logic into xud (or an external daemon connected to xud to avoid a boltz-lnd in xud) instead of placing the logic directly e.g. into boltz-lnd.
xud is the only place with overview of all on-chain/off-chain(remote/local) balances of all swap clients as well as trading activity. We believe there will be some "learning" involved as to when swap in/out of a channel open a new channel, which fee to attach based on trading activity etc.
Further, since there will be fees involved in general, we need to inform the user and get consent to take over automatic, unattended rebalancing. So it would be xud instructing and boltz-lnd simply executing the swaps.
Just spoke to @erkarl about this. We came to the conclusion that it is wiser to place channel rebalancing logic into xud (or an external daemon connected to xud to avoid a boltz-lnd in xud) instead of placing the logic directly e.g. into
boltz-lnd
.xud is the only place with overview of all on-chain/off-chain(remote/local) balances of all swap clients as well as trading activity. We believe there will be some "learning" involved as to when swap in/out of a channel open a new channel, which fee to attach based on trading activity etc.
Further, since there will be fees involved in general, we need to inform the user and get consent to take over automatic, unattended rebalancing. So it would be xud instructing and
boltz-lnd
simply executing the swaps.Wdyt? @michael1011 @sangaman @erkarl
Related issue: balance threshold https://github.com/ExchangeUnion/xud/issues/680 Related project: balance of satoshis https://github.com/alexbosworth/balanceofsatoshis