pub trait Config: Config + Config + Config + Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type GetSyntheticBaseAssetId: Get<Self::AssetId>;
type GetXSTPoolPermissionedTechAccountId: Get<Self::TechAccountId>;
type EnsureDEXManager: EnsureDEXManager<Self::DEXId, Self::AccountId, DispatchError>;
type PriceToolsPallet: PriceToolsPallet<Self::AssetId>;
type Oracle: DataFeed<Self::Symbol, Rate, u64>;
type Symbol: Parameter + From<SymbolName> + MaybeSerializeDeserialize;
type GetSyntheticBaseBuySellLimit: Get<Balance>;
type TradingPairSourceManager: TradingPairSourceManager<Self::DEXId, Self::AssetId>;
type WeightInfo: WeightInfo;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
sourcetype GetSyntheticBaseAssetId: Get<Self::AssetId>
type GetSyntheticBaseAssetId: Get<Self::AssetId>
AssetId which is convertible to/from XSTUSD
type GetXSTPoolPermissionedTechAccountId: Get<Self::TechAccountId>
type EnsureDEXManager: EnsureDEXManager<Self::DEXId, Self::AccountId, DispatchError>
type PriceToolsPallet: PriceToolsPallet<Self::AssetId>
type Oracle: DataFeed<Self::Symbol, Rate, u64>
sourcetype Symbol: Parameter + From<SymbolName> + MaybeSerializeDeserialize
type Symbol: Parameter + From<SymbolName> + MaybeSerializeDeserialize
Type of symbol received from oracles
sourcetype GetSyntheticBaseBuySellLimit: Get<Balance>
type GetSyntheticBaseBuySellLimit: Get<Balance>
Maximum tradable amount of XST
type TradingPairSourceManager: TradingPairSourceManager<Self::DEXId, Self::AssetId>
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.