Skip to content

Commit

Permalink
Merge branch 'production'
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Mar 8, 2024
2 parents 3f71303 + 6038866 commit 14c136c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prioritization_fees/src/stats_calculation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn calculate_supp_percentiles(
.map(|p| {
let prio_fee = {
let index = prio_fees_in_block.len() * p / 100;
let cap_index = index.min(prio_fees_in_block.len() - 1);
let cap_index = index.min(prio_fees_in_block.len().saturating_sub(1));
prio_fees_in_block[cap_index].priority
};
FeePoint {
Expand Down

0 comments on commit 14c136c

Please sign in to comment.