pub fn swap_exact_tokens_for_tokens<T: Config>(
    amount_in: T::Balance,
    amount_out_min: T::Balance,
    routes: Vec<Route<T::StablePoolId, T::CurrencyId>>,
    to: T::AccountId,
    deadline: BlockNumberFor<T>
)
Expand description

Atomically execute a series of trades using DexGeneral and/or DexStable. The whole transaction will rollback if any of the trades fail.

Complexity

  • O(T) where T is the number of trades.

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.