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?