From 83d645b01a24bb4d13358614a8a2a6fcefb75c2f Mon Sep 17 00:00:00 2001 From: Evan Batsell Date: Wed, 19 Jun 2024 15:52:56 -0400 Subject: [PATCH] Fix --- programs/steward/src/state/parameters.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/steward/src/state/parameters.rs b/programs/steward/src/state/parameters.rs index f1ccdb6c..1f287358 100644 --- a/programs/steward/src/state/parameters.rs +++ b/programs/steward/src/state/parameters.rs @@ -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 {