Skip to content

confusing unit descriptions for "fee_per_mil" and "fee_rate" #4155

Open
@AndySchroder

Description

@AndySchroder

For fee_per_mil we have a definition of "The amount charged per milli-satoshis transferred expressed in millionths of a satoshi.". I interpret the units for this to be (1sat/1milli-sat)*(10^6 micro-sat)/(1sat)=(10^6 micro-sat)/(1milli-sat) .

For fee_rate we have a definition of "The effective fee rate in milli-satoshis. Computed by dividing the fee_per_mil value by 1 million.". If I take the above assumption, then I get ((10^6 micro sat)/(1milli-sat))/(10^6 microsat/1sat)=1sat/1milli-sat , which is not in milli-sat.

Should the definition of fee_per_mil read "The milli-satoshi amount charged per milli-satoshis transferred expressed in micro-satoshi per milli-satoshi"`?

Should the definition of fee_rate be "The milli-satoshi amount charged per milli-satoshis transferred, which is equal to fee_per_mil*10^6"? If this is correct, fee_rate is unitless.

Is there a clearer way to present it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3might get fixed, nice to havedocumentationDocumentation changes that do not affect code behaviourfeesRelated to the fees paid for transactions (both LN and funding/commitment transactions)graphv0.12

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions