lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
502 stars 88 forks source link

Auto-fees enhancement: fee-rate pinning #666

Open dekdynamics opened 11 months ago

dekdynamics commented 11 months ago

Is your feature request related to a problem? Please describe.

Sometimes auto-fees can set oscillating fee rates on a channel. Say I have a channel that flows regularly at 2000 ppm. Auto-fees might raise the ppm to 2100, but the channel never flows at this rate. The next fee-rate adjustment moves the ppm to 1900, which flows well but leaves some fee earnings on the table. The next adjustment is to 2000 ppm which is the sweet spot. Finally, the channel is changed to 2100 again, and the forwards stop and the cycle repeats.

Describe the solution you'd like

It would be helpful to click a pin icon or something on a per-channel basis so that auto-fees stops running the adjustment algorithm on a channel. The fee-rate wont change until the pin is deselected.

Describe alternatives you've considered

To accomplish this goal, I wait until the channel is in the sweet spot and then disable auto-fees for that channel.

levmi commented 11 months ago

Thanks for the feedback as always! Just want to make sure I understand, do you want there to be a difference between this pinning concept and just turning off Autofees? It seems like the outcome would be the same, but maybe it's a UX improvement.