Function calculate_threshold

Source
pub fn calculate_threshold(
    operator_stake: StakeWeight,
    total_domain_stake: StakeWeight,
    bundle_slot_probability: (u64, u64),
) -> Option<u128>
Expand description

Returns the election threshold based on the operator stake proportion and slot probability.