diff --git a/pallets/parachain-staking/src/lib.rs b/pallets/parachain-staking/src/lib.rs index 2e04e79d8c..38f9377b39 100644 --- a/pallets/parachain-staking/src/lib.rs +++ b/pallets/parachain-staking/src/lib.rs @@ -83,7 +83,7 @@ pub mod pallet { use crate::{set::BoundedOrderedSet, traits::*, types::*, InflationInfo, Range, WeightInfo}; use crate::{AutoCompoundConfig, AutoCompoundDelegations}; use frame_support::fail; - use frame_support::pallet_prelude::*; + use frame_support::pallet_prelude::{ValueQuery, *}; use frame_support::traits::{ tokens::WithdrawReasons, Currency, Get, Imbalance, LockIdentifier, LockableCurrency, ReservableCurrency, diff --git a/pallets/parachain-staking/src/types.rs b/pallets/parachain-staking/src/types.rs index d2dcbb292d..92953a8c6c 100644 --- a/pallets/parachain-staking/src/types.rs +++ b/pallets/parachain-staking/src/types.rs @@ -1748,6 +1748,13 @@ impl< } } +#[derive(Clone, PartialEq, Eq, Encode, Decode, RuntimeDebug, TypeInfo)] +pub enum InflationDistributionConfigId { + ParachainBondReserve, + Treasury, + Other([u8; 32]), +} + #[derive(Clone, PartialEq, Eq, Encode, Decode, RuntimeDebug, TypeInfo)] /// Reserve information { account, percent_of_inflation } pub struct ParachainBondConfig {