Bitcoin Core's coin selection algorithms optimizes mostly for the following metrics:
- keep a low utxo count by consolidating regularly
- avoid creating a change output
- when a change output is needed, use an amount equivalent to the payment (for privacy)
This doesn't match what liquidity providers need. Liquidity providers need to:
Liquidity is always provided by an on-chain transaction (channel open or splice), which can be triggered by:
- On-chain funds added by the wallet user.
- A lightning payment to the wallet user requiring additional liquidity.
OlderNewer