Trait pallet_xyk::pallet::Config
source · pub trait Config: Config + XykBenchmarkingConfig {
Show 16 associated items
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type MaintenanceStatusProvider: GetMaintenanceStatusTrait;
type ActivationReservesProvider: ActivationReservesProviderTrait<Self::AccountId, BalanceOf<Self>, CurrencyIdOf<Self>>;
type Currency: MultiTokenCurrencyExtended<Self::AccountId> + MultiTokenReservableCurrency<Self::AccountId>;
type NativeCurrencyId: Get<CurrencyIdOf<Self>>;
type TreasuryPalletId: Get<PalletId>;
type BnbTreasurySubAccDerive: Get<[u8; 4]>;
type LiquidityMiningRewards: ProofOfStakeRewardsApi<Self::AccountId, BalanceOf<Self>, CurrencyIdOf<Self>>;
type PoolFeePercentage: Get<u128>;
type TreasuryFeePercentage: Get<u128>;
type BuyAndBurnFeePercentage: Get<u128>;
type DisallowedPools: Contains<(CurrencyIdOf<Self>, CurrencyIdOf<Self>)>;
type DisabledTokens: Contains<CurrencyIdOf<Self>>;
type VestingProvider: MultiTokenVestingLocks<Self::AccountId, Currency = <Self as Config>::Currency, Moment = BlockNumberFor<Self>>;
type AssetMetadataMutation: AssetMetadataMutationTrait<CurrencyIdOf<Self>>;
type WeightInfo: WeightInfo;
}
Expand description
Configuration trait of this pallet.
The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.
Consequently, a runtime that wants to include this pallet must implement this trait.