diff --git a/candidate-selection/src/lib.rs b/candidate-selection/src/lib.rs index cae9ed9..f529cf6 100644 --- a/candidate-selection/src/lib.rs +++ b/candidate-selection/src/lib.rs @@ -51,16 +51,7 @@ where .filter(|c| selected.iter().all(|s| s.id() != c.id())) .map(|c| (c, marginal_score(current_score, &selected, c))) .max_by_key(|(c, marginal_score)| marginal_score / c.fee().as_f64().max(0.01)) - .filter(|(c, marginal_score)| { - if *marginal_score.as_ref() <= 0.0 { - return false; - } - if current_score == Normalized::ZERO { - return true; - } - let max_score = 0.5 * *(marginal_score / current_score.as_f64()); - c.fee().as_f64() <= max_score - }); + .filter(|(_, marginal_score)| *marginal_score.as_ref() > 0.0); match selection { Some((selection, _)) => { selected.push(selection);