From bf7f51bf17059c9c656376f300779a3e7ddec04d Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Mon, 25 Mar 2024 13:55:11 -0400 Subject: [PATCH] fix: adjust slashable USD curve --- indexer-selection/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indexer-selection/src/lib.rs b/indexer-selection/src/lib.rs index 8bc114f..a811e83 100644 --- a/indexer-selection/src/lib.rs +++ b/indexer-selection/src/lib.rs @@ -146,10 +146,10 @@ fn score_seconds_behind(seconds_behind: u32) -> Normalized { Normalized::new(1.0 - E.powf(-32.0 / seconds_behind.max(1) as f64)).unwrap() } -/// https://www.desmos.com/calculator/akqaa2gjrf +/// https://www.desmos.com/calculator/h2w01h56xs fn score_slashable_usd(slashable_usd: u64) -> Normalized { let x = slashable_usd as f64; - let a = 2e-4; + let a = 7e-5; Normalized::new(1.0 - E.powf(-a * x)).unwrap() }