Skip to content

[enhancement] Set inbound_fee_offset relativ to outbound fee of a peer #121

Description

@warioishere

Hello,

Would it be possible to implement a feature in charge-lnd that allows setting inbound fees dynamically based on the outbound fee of a channel?

For example, if a channel has an externally set outbound feerate of 400 ppm, charge-lnd should be able to apply a predefined negative fee offset, such as -40 ppm, resulting in an inbound fee of -360 ppm.

The idea is to let charge-lnd retrieve the outbound feerate and then apply a custom discount to determine the inbound fee.

A potential configuration could look like this:

[inbound-fee-policy]

node.id = file:///home/lnd/inbound_discount_peers.list

strategy = discount from outboundfee
inbound_base_fee_msat_offset = -40

This would allow defining a list of peers in a file, for whom charge-lnd automatically applies an inbound fee offset based on their outbound fee.

A similar approach has reportedly led to significant liquidity flow improvements and a 20-25% profit increase in another project, and would let to a better atumatization of the liquidy managment of a routing node making things a bit easy for a noderunner :)

Would this be feasible for charge-lnd?

Greetings from wario

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions