Browse Source

Remove unnecessary checks

Shamil Gadelshin 4 years ago
parent
commit
54eea690bf
1 changed files with 0 additions and 8 deletions
  1. 0 8
      runtime-modules/bureaucracy/src/lib.rs

+ 0 - 8
runtime-modules/bureaucracy/src/lib.rs

@@ -896,10 +896,6 @@ decl_module! {
 
             let stake_profile = worker.role_stake_profile.ok_or(Error::NoWorkerStakeProfile)?;
 
-            ensure_on_wrapped_error!(
-                <stake::Module<T>>::ensure_can_decrease_stake(&stake_profile.stake_id, balance)
-            )?;
-
             //
             // == MUTATION SAFE ==
             //
@@ -925,10 +921,6 @@ decl_module! {
 
             let stake_profile = worker.role_stake_profile.ok_or(Error::NoWorkerStakeProfile)?;
 
-            ensure_on_wrapped_error!(
-                <stake::Module<T>>::ensure_can_increase_stake(&stake_profile.stake_id, balance)
-            )?;
-
             //
             // == MUTATION SAFE ==
             //