diff --git a/staking/cli/src/instructions.rs b/staking/cli/src/instructions.rs index e8f3ff47..0cbd39dc 100644 --- a/staking/cli/src/instructions.rs +++ b/staking/cli/src/instructions.rs @@ -1393,6 +1393,8 @@ pub async fn claim_rewards(rpc_client: &RpcClient, signer: &dyn Signer, min_stak .iter_mut() .filter_map(|positions| { let positions = positions.to_dynamic_position_array(); + // We can't use `get_target_exposure` because it ignores UNLOCKED positions but they + // might have rewards let exposure = { let mut exposure = 0; for i in 0..positions.get_position_capacity() { diff --git a/staking/cli/src/main.rs b/staking/cli/src/main.rs index d11b4d66..ab0941ff 100644 --- a/staking/cli/src/main.rs +++ b/staking/cli/src/main.rs @@ -35,7 +35,7 @@ async fn main() { } = Cli::parse(); if cfg!(debug_assertions) { - panic!("These are issues with running the CLI in debug mode, and it might lead to segmentation fault, please use cargo run --release"); + panic!("There are issues with running the CLI in debug mode, and it might lead to segmentation fault, please use cargo run --release"); }