pub type SwapOf<T> = Swap<<T as Config>::SwapBalance, <T as Config>::CurrencyId>;
Expand description

Swap alias

Aliased Type§

struct SwapOf<T> {
    pub currency_in: <T as Config>::CurrencyId,
    pub currency_out: <T as Config>::CurrencyId,
    pub amount_out: <T as Config>::SwapBalance,
}

Fields§

§currency_in: <T as Config>::CurrencyId

The incoming currency, i.e. the desired one.

§currency_out: <T as Config>::CurrencyId

The outgoing currency, i.e. the one which should be replaced.

§amount_out: <T as Config>::SwapBalance

The amount of outcoming currency that will be swapped.