ExchangeUnion / xud

Exchange Union Daemon 🔁 ⚡️
https://exchangeunion.com
GNU Affero General Public License v3.0
115 stars 44 forks source link

Unattended channel rebalancing service #1776

Open kilrau opened 4 years ago

kilrau commented 4 years ago

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

ghost commented 4 years ago

My concern here is that the user has to be 100% aware that there will be fees associated with this. We'd have to make that super clear.