Skip to content

Commit

Permalink
[move] lower percentage gap for seats offered vs elegible (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
soaresa authored and 0o-de-lally committed Aug 12, 2024
1 parent 31a4db4 commit 7910e53
Show file tree
Hide file tree
Showing 2 changed files 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 = 20; // 20%
const PCT_REDUCTION_FOR_COMPETITION: u64 = 10; // 10%
/// 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 == 40, 7357030);
assert!(result == 45, 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*80%) = 17
assert!(result == 17, 7357030);
// min(21, 21*90%) = 19
assert!(result == 19, 7357030);

let outgoing_compliant = 21;
let qualified_bidders = 20;
Expand Down
Binary file modified framework/releases/head.mrb
Binary file not shown.

0 comments on commit 7910e53

Please sign in to comment.