referrerpolicy=no-referrer-when-downgrade
pub fn swap_tokens_for_exact_tokens<T: Config>(
    path: Vec<Box<T::AssetKind>>,
    amount_out: T::Balance,
    amount_in_max: T::Balance,
    send_to: T::AccountId,
    keep_alive: bool,
)
Expand description

Swap any amount of asset1 to get the exact amount of asset2. amount_in_max param allows to specify the max amount of the asset1 you’re happy to provide.

AssetConversionApi::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.