Supporting a custodial user who wishes to withdraw all sats from the account...



Summary:

A Lightning developer has proposed a solution to the problem of users having leftover funds when withdrawing from custodial wallets. The proposal is called 'option_recipient_pays_routing_fees' and involves creating an invoice with a flag indicating that the recipient is willing to pay for routing fees by releasing the preimage, even if the full amount has not been received. The onion is then constructed in a way that the first htlc will be for the full amount, while subsequent HTLCs will be of decreasing value so that routing nodes are compensated properly. The release of the preimage will occur only if missing sats (up to 1% of the amount) are not too many. However, this proposal may confuse users who want to drain their accounts. Another possible solution is trampoline routes, where a trampoline node decrypts the first layer of the onion and the receiver provides an encrypted route from some node to itself. The receiver deducts the fees from its funds in this case.


Updated on: 2023-06-03T09:42:54.621871+00:00