referrerpolicy=no-referrer-when-downgrade

Function pallet_asset_conversion::pallet::dispatchables::touch

source ·
pub fn touch<T: Config>(asset1: Box<T::AssetKind>, asset2: Box<T::AssetKind>)
Expand description

Touch an existing pool to fulfill prerequisites before providing liquidity, such as ensuring that the pool’s accounts are in place. It is typically useful when a pool creator removes the pool’s accounts and does not provide a liquidity. This action may involve holding assets from the caller as a deposit for creating the pool’s accounts.

The origin must be Signed.

  • asset1: The asset ID of an existing pool with a pair (asset1, asset2).
  • asset2: The asset ID of an existing pool with a pair (asset1, asset2).

Emits Touched event when successful.

§Warning: Doc-Only

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