Function dex_general::pallet::dispatchables::add_liquidity
source · pub fn add_liquidity<T: Config>(
asset_0: T::AssetId,
asset_1: T::AssetId,
amount_0_desired: AssetBalance,
amount_1_desired: AssetBalance,
amount_0_min: AssetBalance,
amount_1_min: AssetBalance,
deadline: BlockNumberFor<T>
)
Expand description
Provide liquidity to a pair.
The order of assets does not effect the result.
Arguments
asset_0
: Asset which make up pairasset_1
: Asset which make up pairamount_0_desired
: Maximum amount of asset_0 added to the pairamount_1_desired
: Maximum amount of asset_1 added to the pairamount_0_min
: Minimum amount of asset_0 added to the pairamount_1_min
: Minimum amount of asset_1 added to the pairdeadline
: 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::add_liquidity
.