Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ebatsell committed Jun 19, 2024
1 parent 2d6b55d commit 83d645b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/steward/src/state/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ impl Parameters {
let window_max = current_epoch
.checked_sub(VALIDATOR_HISTORY_FIRST_RELIABLE_EPOCH)
.ok_or(StewardError::ArithmeticError)?
.min(validator_history::ValidatorHistory::MAX_ITEMS as usize - 1);
.min(validator_history::ValidatorHistory::MAX_ITEMS as u64 - 1);
let window_max = cast_epoch(window_max)?;

if self.mev_commission_range > window_max {
Expand Down

0 comments on commit 83d645b

Please sign in to comment.