pub fn notional_bag_for<T: Config<I>, I: 'static>(score: T::Score) -> T::Score
Expand description

Given a certain score, to which bag does it belong to?

Bags are identified by their upper threshold; the value returned by this function is guaranteed to be a member of T::BagThresholds.

Note that even if the thresholds list does not have T::Score::max_value() as its final member, this function behaves as if it does.