Closed holzeis closed 1 year ago
Charging the receiver of the payment for the channel creation is not as straight forward as initially assumed. LDK (and I think any lightning implementation in general) checks if the received amount is at least the same amount as issued in the invoice. So we can't simply cut the amount from the forwarded htlc transaction.
Researching on how Breez does it, reveals that they are creating two invoices using the same pre-image. see below for a more detailed description. However, this seems to be a significant change
https://doc.breez.technology/#no-channel-management-zero-conf-channels-are-created-on-the-fly
Deemed to be a post mvp ticket
Related to #577.
Duplicate of #577
Currently we charge 2% on every routing transaction. Instead we want to charge the user for the on-chain transaction costs when opening an just-in-time channel. Routing fees are set 1 sat + 1% (this is the default config on the lnd) for the beta phase.
// edit: changed routing fees from 0 to 1 sat + 1%.