You can specify maximum fees, at least with Zeus and your own node. When doing rebalancing of channels you do just that to send from one channel and receive on the other.

It’s best just to charge a fixed fee that you expect to pay at a max and be done with it! 🐶🐾🫡

Reply to this note

Please Login to reply.

Discussion

Hmm, and how about when you forward payments?

As I see, even when we pay to a lightning address, we create an invoice on the fly and pay that. When we pay an invoice, we pay that price, + the routing fee. This way who created the invoice will receive the amount fully.

But, if we have a node in the center, we create an invoice to that, we pay that + fees, then the node creates an invoice to the end address, then it pays. Is it possible from the nodes perspective to send all the received sats in a way that it includes the fees?

Anything that is acting as a proxy will have to pay the fees. Unless there is a direct channel between the node that acts as a proxy and a receiver’s node.

You can probably also do it one the fly, I think lnproxy does something like that! 🐶🐾🫡

Paying fees is not a problem. I use the channels, I have to pay.

I am only thinking if it is possible to send forward the received sats in a way, that the invoice + the fees add up to the original amount received. No remaining sats on the wallet.

Take a look at https://github.com/lnproxy/lnproxy ! Since I never had to do that, I can’t say for sure. Also, see how amboss is doing it for Magma. 🐶🐾🫡