pub fn swap_exact_tokens_for_tokens<T: Config>(
path: BoundedVec<Coin, T::MaxSwapPathLength>,
amount_in: SubstrateAmount,
amount_out_min: SubstrateAmount,
send_to: T::AccountId,
)
Expand description
Swap the exact amount of coin1
into coin2
.
amount_out_min
param allows you to specify the min amount of the coin2
you’re happy to receive.
DexApi::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
.