Skip to content

Commit

Permalink
updates pof competitive pct parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
soaresa committed Aug 5, 2024
1 parent 17d3369 commit 5103549
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module ol_framework::proof_of_fee {
/// after some experience in the wild. Additionally it could be dynamic
/// based on another function or simply randomized within a range
/// (as originally proposed in this feature request)
const PCT_REDUCTION_FOR_COMPETITION: u64 = 10; // 10%
const PCT_REDUCTION_FOR_COMPETITION: u64 = 20; // 20%
/// Upper bound threshold for bid percentages.
const BID_UPPER_BOUND: u64 = 0950; // 95%
/// Lower bound threshold for bid percentages.
Expand Down Expand Up @@ -1172,7 +1172,7 @@ module ol_framework::proof_of_fee {
let qualified_bidders = 50;
let mc_set_size = 50;
let result = calculate_final_set_size(outgoing_compliant, qualified_bidders, mc_set_size);
assert!(result == 45, 7357030);
assert!(result == 40, 7357030);
}

#[test]
Expand All @@ -1181,8 +1181,8 @@ module ol_framework::proof_of_fee {
let qualified_bidders = 21;
let mc_set_size = 21;
let result = calculate_final_set_size(outgoing_compliant, qualified_bidders, mc_set_size);
// min(21, 21*90%) = 19
assert!(result == 19, 7357030);
// min(21, 21*80%) = 17
assert!(result == 17, 7357030);

let outgoing_compliant = 21;
let qualified_bidders = 20;
Expand Down

0 comments on commit 5103549

Please sign in to comment.