Trait pool_xyk::pallet::Config

source ·
pub trait Config: Config + Config + Config + Config + Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type PairSwapAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter;
    type DepositLiquidityAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter;
    type WithdrawLiquidityAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter;
    type PolySwapAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter + Into<<Self as Config>::SwapAction> + From<PolySwapAction<<Self as Config>::AssetId, <Self as Config>::AccountId, <Self as Config>::TechAccountId>>;
    type EnsureDEXManager: EnsureDEXManager<Self::DEXId, Self::AccountId, DispatchError>;
    type XSTMarketInfo: GetMarketInfo<Self::AssetId>;
    type GetFee: Get<Fixed>;
    type OnPoolCreated: OnPoolCreated<AccountId = AccountIdOf<Self>, DEXId = <Self as Config>::DEXId>;
    type OnPoolReservesChanged: OnPoolReservesChanged<Self::AssetId>;
    type WeightInfo: WeightInfo;
    type GetTradingPairRestrictedFlag: GetByKey<TradingPair<Self::AssetId>, bool>;
Show 1 associated constant and 0 method const MIN_XOR: Balance;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

Because this pallet emits events, it depends on the runtime’s definition of an event.

source

type PairSwapAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter

source

type DepositLiquidityAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter

source

type WithdrawLiquidityAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter

source

type PolySwapAction: SwapAction<AccountIdOf<Self>, <Self as Config>::TechAccountId, <Self as Config>::AssetId, Self> + Parameter + Into<<Self as Config>::SwapAction> + From<PolySwapAction<<Self as Config>::AssetId, <Self as Config>::AccountId, <Self as Config>::TechAccountId>>

source

type EnsureDEXManager: EnsureDEXManager<Self::DEXId, Self::AccountId, DispatchError>

source

type XSTMarketInfo: GetMarketInfo<Self::AssetId>

source

type GetFee: Get<Fixed>

source

type OnPoolCreated: OnPoolCreated<AccountId = AccountIdOf<Self>, DEXId = <Self as Config>::DEXId>

source

type OnPoolReservesChanged: OnPoolReservesChanged<Self::AssetId>

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

source

type GetTradingPairRestrictedFlag: GetByKey<TradingPair<Self::AssetId>, bool>

Required Associated Constants§

source

const MIN_XOR: Balance

The minimum amount of XOR to deposit as liquidity

Implementors§