pub trait Config: Config {
    type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
    type AssetId: Parameter + Member + Copy + MaybeSerializeDeserialize;
    type Balance: Parameter + Member + Copy + PartialOrd + MaybeSerializeDeserialize + Default + CheckedSub + CheckedAdd;
    type MaxNumberOfTrades: Get<u8>;
    type Currency: Inspect<Self::AccountId, AssetId = Self::AssetId, Balance = Self::Balance>;
    type AMM: TradeExecution<<Self as Config>::Origin, Self::AccountId, Self::AssetId, Self::Balance, Error = DispatchError>;
    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§

Asset id type

Balance type

Max limit for the number of trades within a route

Currency for checking balances

Handlers for AMM pools to calculate and execute trades

Weight information for the extrinsics.

Implementors§