Skip to content

Commit

Permalink
lint: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
shekohex committed Oct 18, 2024
1 parent bd00a58 commit c5f53a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion forge/lib/openzeppelin-contracts
4 changes: 2 additions & 2 deletions pallets/services/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1115,10 +1115,10 @@ pub mod module {
let operator_is_active = T::OperatorDelegationManager::is_operator_active(&offender);
ensure!(operator_is_active, Error::<T>::OffenderNotActiveOperator);

let total_own_stake = T::OperatorDelegationManager::get_operator_stake(&operator);
let total_own_stake = T::OperatorDelegationManager::get_operator_stake(operator);
// Only take the exposed restake percentage for this service.
let own_stake = restake_percent.mul_floor(total_own_stake);
let delegators = T::OperatorDelegationManager::get_delegators_for_operator(&operator);
let delegators = T::OperatorDelegationManager::get_delegators_for_operator(operator);
let exposed_stake = percent.mul_floor(own_stake);
let others_slash = delegators
.into_iter()
Expand Down

0 comments on commit c5f53a5

Please sign in to comment.