-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
confusing unit descriptions for "fee_per_mil" and "fee_rate" #4155
Comments
Note, the above definitions came from Note:
So, I'm even more confused at this point. If I look at a channel, using Also note, |
Related to #1523 |
I was looking into this issue. A bit confused though. My understanding of the f.BaseFee + (htlcAmt*f.FeeRate)/1000000 Since both
And my understanding of the
|
I think stating it in nanosat per millisat confuses people even more. It's a fraction. Just say its in "per million" (and don't abbreviate it as per_mil, since that may be read as per mille, which is just per thousand). We are used to compute in percent and this should follow this notion only it is in "per million" not "per hundred". There is also ppm (parts per million) but I'm not sure if it should be used here, since there are no particles. |
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 tofee_per_mil
*10^6
"? If this is correct,fee_rate
is unitless.Is there a clearer way to present it?
The text was updated successfully, but these errors were encountered: