Function dex_general::pallet::dispatchables::swap_assets_for_exact_assets
source · 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 boughtamount_in_max
: Maximum amount of sold assetpath
: path can convert to pairs.recipient
: Account that receive the target assetdeadline
: 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
.