Function fil_actor_miner_state::v14::quality_for_weight

source ยท
pub fn quality_for_weight(
    size: SectorSize,
    duration: ChainEpoch,
    deal_weight: &DealWeight,
    verified_weight: &DealWeight,
) -> BigInt
Expand description

DealWeight and VerifiedDealWeight are spacetime occupied by regular deals and verified deals in a sector. Sum of DealWeight and VerifiedDealWeight should be less than or equal to total SpaceTime of a sector. Sectors full of VerifiedDeals will have a BigInt of VerifiedDealWeightMultiplier/QualityBaseMultiplier. Sectors full of Deals will have a BigInt of DealWeightMultiplier/QualityBaseMultiplier. Sectors with neither will have a BigInt of QualityBaseMultiplier/QualityBaseMultiplier. BigInt of a sector is a weighted average of multipliers based on their proportions.