Type Alias pallet_foreign_investments::SwapOf
source · 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>::CurrencyIdThe incoming currency, i.e. the desired one.
currency_out: <T as Config>::CurrencyIdThe outgoing currency, i.e. the one which should be replaced.
amount_out: <T as Config>::SwapBalanceThe amount of outcoming currency that will be swapped.