Function fil_actor_miner_state::v10::quality_for_weight
source ยท pub fn quality_for_weight(
size: SectorSize,
duration: ChainEpoch,
deal_weight: &DealWeight,
verified_weight: &DealWeight,
) -> SectorQuality
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 SectorQuality
of VerifiedDealWeightMultiplier
/QualityBaseMultiplier
.
Sectors full of Deals will have a SectorQuality
of DealWeightMultiplier
/QualityBaseMultiplier
.
Sectors with neither will have a SectorQuality
of QualityBaseMultiplier
/QualityBaseMultiplier
.
SectorQuality
of a sector is a weighted average of multipliers based on their proportions.