Type Definition pallet_proof_of_stake::pallet::ActivatedLiquidityForSchedules
source · pub type ActivatedLiquidityForSchedules<T> = StorageNMap<_GeneratedPrefixForStorageActivatedLiquidityForSchedules<T>, (NMapKey<Twox64Concat, <T as Config>::AccountId>, NMapKey<Twox64Concat, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::CurrencyId>, NMapKey<Twox64Concat, <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::CurrencyId>), <<T as Config>::Currency as MultiTokenCurrency<<T as Config>::AccountId>>::Balance, OptionQuery>;
Expand description
Tracks how much liquidity user activated for particular (liq token, reward token) pair StorageNMap was used because it only require single read to know if user deactivated all liquidity associated with particular liquidity_token that is rewarded. If so part of the liquididty tokens can be unlocked.
Storage type is StorageNMap
with keys type (AccountIdOf < T >, CurrencyIdOf < T >, CurrencyIdOf < T >) and value type BalanceOf < T >.