We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c723a9d commit 6ba04e8Copy full SHA for 6ba04e8
lightning/src/routing/scoring.rs
@@ -1057,7 +1057,7 @@ fn success_probability(
1057
let num = max_pow - (amount - 0.5).powi(3);
1058
let den = max_pow - (min - 0.5).powi(3);
1059
1060
- // Because our numerator and denominator max out at 2^-3 we need to multiply them by
+ // Because our numerator and denominator max out at 0.5^3 we need to multiply them by
1061
// quite a large factor to get something useful (ideally in the 2^30 range).
1062
const BILLIONISH: f64 = 1024.0 * 1024.0 * 1024.0;
1063
let numerator = (num * BILLIONISH) as u64 + 1;
0 commit comments