Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Jan 7, 2025
1 parent ccc9250 commit 4f40d79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions staking/cli/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion staking/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}


Expand Down

0 comments on commit 4f40d79

Please sign in to comment.