difftreelog
fix(app-promo) fmt
in: master
1 file changed
pallets/app-promotion/src/lib.rsdiffbeforeafterboth112 + Mutate<Self::AccountId> 112 + Mutate<Self::AccountId>113 + ExtendedLockableCurrency<Self::AccountId, Balance = <<Self as Config>::Currency as Inspect<Self::AccountId>>::Balance>;113 + ExtendedLockableCurrency<114 Self::AccountId,115 Balance = <<Self as Config>::Currency as Inspect<Self::AccountId>>::Balance,116 >;114117115 /// Type for interacting with collections118 /// Type for interacting with collections131 /// Freeze identifier used by the pallet134 /// Freeze identifier used by the pallet132 #[pallet::constant]135 #[pallet::constant]133 type FreezeIdentifier: Get<<<Self as Config>::Currency as InspectFreeze<Self::AccountId>>::Id>;136 type FreezeIdentifier: Get<137 <<Self as Config>::Currency as InspectFreeze<Self::AccountId>>::Id,138 >;134139135 /// In relay blocks.140 /// In relay blocks.215 /// Errors caused by insufficient staked balance.220 /// Errors caused by insufficient staked balance.216 InsufficientStakedBalance,221 InsufficientStakedBalance,217 /// Errors caused by incorrect state of a staker in context of the pallet.222 /// Errors caused by incorrect state of a staker in context of the pallet.218 InconsistencyState223 InconsistencyState,219 }224 }220225221 /// Stores the total staked amount.226 /// Stores the total staked amount.837 if let Some(lock) = Self::get_locked_balance(&s) {844 if let Some(lock) = Self::get_locked_balance(&s) {838 839 if let Some(_) = Self::get_frozen_balance(&s) {845 if let Some(_) = Self::get_frozen_balance(&s) {840 return Err(Error::<T>::InconsistencyState.into())846 return Err(Error::<T>::InconsistencyState.into());841 }847 }842 848843 <<T as Config>::Currency as LockableCurrency<T::AccountId>>::remove_lock(849 <<T as Config>::Currency as LockableCurrency<T::AccountId>>::remove_lock(