pub fn swap_exact_tokens_for_tokens<T: Config>(
path: BoundedVec<T::MultiAssetId, T::MaxSwapPathLength>,
amount_in: T::AssetBalance,
amount_out_min: T::AssetBalance,
send_to: T::AccountId,
keep_alive: bool
)
Expand description
Swap the exact amount of asset1
into asset2
.
amount_out_min
param allows you to specify the min amount of the asset2
you’re happy to receive.
AssetConversionApi::quote_price_exact_tokens_for_tokens
runtime call can be called
for a quote.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::swap_exact_tokens_for_tokens
.