pub fn swap_tokens_for_exact_tokens<T: Config>(
path: BoundedVec<Coin, T::MaxSwapPathLength>,
amount_out: SubstrateAmount,
amount_in_max: SubstrateAmount,
send_to: T::AccountId,
)
Expand description
Swap any amount of coin1
to get the exact amount of coin2
.
amount_in_max
param allows to specify the max amount of the coin1
you’re happy to provide.
DexApi::quote_price_tokens_for_exact_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_tokens_for_exact_tokens
.