git.delta.rocks / unique-network / refs/commits / 09fadf78bba6

difftreelog

fix(app-promo) fmt

PraetorP2023-05-19parent: #1139244.patch.diff
in: master

1 file changed

modifiedpallets/app-promotion/src/lib.rsdiffbeforeafterboth
112 + 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 >;
114117
115 /// Type for interacting with collections118 /// Type for interacting with collections
131 /// Freeze identifier used by the pallet134 /// Freeze identifier used by the pallet
132 #[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 >;
134139
135 /// 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 }
220225
221 /// 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 848
843 <<T as Config>::Currency as LockableCurrency<T::AccountId>>::remove_lock(849 <<T as Config>::Currency as LockableCurrency<T::AccountId>>::remove_lock(