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 pair
  • asset_1: Asset which make up pair
  • amount_0_desired: Maximum amount of asset_0 added to the pair
  • amount_1_desired: Maximum amount of asset_1 added to the pair
  • amount_0_min: Minimum amount of asset_0 added to the pair
  • amount_1_min: Minimum amount of asset_1 added to the pair
  • 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::add_liquidity.