balanceofsatoshis icon indicating copy to clipboard operation
balanceofsatoshis copied to clipboard

[rebalance] to consider out and in peer liquidity while probing

Open BhaagBoseDK opened this issue 3 years ago • 1 comments

bos rebalance —out A —in B —in-target-outbound CAPACITY/2

peer B has 2M (0:2) so rebalance starts with target amount of 1M however peer A only has 400k outbound The initial probe is made with ~490K which fails

ideally the max probe amount should be min(outpeer.outbound_liquidity, inpeer.inbound_liquidity, target-amount). This would avoid failed probes.

Or the rebalance target amount can be min(outpeer.outbound_liquidity, inpeer.inbound_liquidity, target-amount) and it would have the same effect though it can confuse people why a non obvious target is displayed.

BhaagBoseDK avatar Jan 08 '22 20:01 BhaagBoseDK

how the initial probe amount calculated today by rebalance?

BhaagBoseDK avatar Apr 14 '22 13:04 BhaagBoseDK