pub fn swap_pool_to_base<T: Config>(
    pool_id: T::PoolId,
    base_pool_id: T::PoolId,
    in_index: u32,
    out_index: u32,
    dx: u128,
    min_dy: u128,
    to: T::AccountId,
    deadline: BlockNumberFor<T>
)
Expand description

Swap the currency from pool to get amounts of other currency in basic pool. to get one currency.

Argument

  • pool_id: The id of pool.
  • base_pool_id: The id of base pool.
  • in_index: The index of swap currency in basic pool.
  • out_index: The index of target currency in pool.
  • dx: The amounts of swap currency.
  • min_dy: The min amounts of target currency.
  • 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_pool_to_base.