I implemented the inbound fee adjustment in my autofee yesterday, we'll see what impact it had on the node in a while.
The logic consists of taking the total outbound cost of the channel, whether it's a sink or router, and this cost is obtained by the amount I paid to fill with rebalances, added to the amount of routed in of this channel and taking the weighted average.
Once this calculation is done, I subtract this cost value from the new outbound fee rate that the automation will make and thus obtain my projected profit margin.
So the next step is to apply a negative inbound fee (discount) following the channel's behavior:
  • For Sinks: Apply a 25% discount on my projected margin
  • For Routers: Apply a 50% discount on my projected margin
What do you think?
what autofee software are you reffering to? Lightning terminal?
reply
I have my own
reply
there's always someone more nerd around, that's great. Are you sharing it on something like github or gitea?
reply
Yes, I'm doing a general automation in my node so that I don't have to do literally anything else. I'll soon release it on github when it's in a more stable version.
reply