Skip to content

Commit

Permalink
remove assert for extreme edgecase in service provider rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldjeffrey committed Oct 4, 2024
1 parent 2dd8ef8 commit 6936a6e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mobile_verifier/src/service_provider/reward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,14 @@ mod tests {
epoch
);

let total_perc= sp_infos.total_percent();
prop_assert!(total_perc <= dec!(1));
// NOTE: This can be a sanity check when debugging. There are cases
// generated where the total percentage is
// 1.0000000000000000000000000001%, but as long as we don't
// allocated more than what is available, this is okay.

// let total_perc = sp_infos.total_percent();
// println!("total_perc: {}", total_perc);
// prop_assert!(total_perc <= dec!(1));

let mut allocated = dec!(0);
for (amount, _) in sp_infos.iter_rewards() {
Expand Down

0 comments on commit 6936a6e

Please sign in to comment.