pub fn swap_assets_for_exact_assets<T: Config>(
    amount_out: AssetBalance,
    amount_in_max: AssetBalance,
    path: Vec<T::AssetId>,
    recipient: <T::Lookup as StaticLookup>::Source,
    deadline: BlockNumberFor<T>
)
Expand description

Buy amount of asset by path.

Arguments

  • amount_out: Amount of the asset will be bought
  • amount_in_max: Maximum amount of sold asset
  • path: path can convert to pairs.
  • recipient: Account that receive the target asset
  • deadline: Height of the cutoff block of this transaction

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::swap_assets_for_exact_assets.