sp_domains::bundle_producer_election

Function calculate_threshold

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

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