We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9d154f commit 3dd6550Copy full SHA for 3dd6550
mobile_verifier/src/reward_shares.rs
@@ -581,17 +581,9 @@ impl CalculatedPocRewardShares {
581
allocated_rewards: DataTransferAndPocAllocatedRewardBuckets,
582
radios: impl Iterator<Item = &'a coverage_point_calculator::CoveragePoints>,
583
) -> Option<Self> {
584
- //TODO fix this
585
- let (total_points, _boost_points, _poc_points) = radios.fold(
586
- (dec!(0), dec!(0), dec!(0)),
587
- |(total, boosted, poc), radio| {
588
- (
589
- total + radio.total_shares(),
590
- boosted + radio.total_boosted_shares(),
591
- poc + radio.total_base_shares(),
592
- )
593
- },
594
- );
+ let total_points = radios
+ .map(|radio| radio.total_shares())
+ .sum::<Decimal>();
595
596
if total_points.is_zero() {
597
return None;
0 commit comments