alexbosworth / balanceofsatoshis

Tool for working with the balance of your satoshis on LND
MIT License
556 stars 78 forks source link

[open-balanced-channel]: Add delta bias to allow for maker fees #246

Open alexbosworth opened 2 years ago

alexbosworth commented 2 years ago

Some people have reported opening balanced channels in exchange for renumeration

Trust-minimized fees for opening isn't built into the flow so it is requiring people to use an out of band trusted mechanism

Instead, the initial balance of the channel could be biased in such a way as to reflect the opening fee: so if we open a 10mm balanced channel, and I want to give you 1mm in exchange for opening it, I would contribute a 6mm sat utxo to the channel but my starting balance would be 5mm, the missing 1mm would be the fee to the channel partner.

niteshbalusu11 commented 2 years ago

In the example above the 1mm would be push amount on channel open or some other method of delivery of fees? If it's pushing, the node buying the balanced open always initiates, correct?

alexbosworth commented 2 years ago

One side always does a push amount in order to create the initial balance