pub fn create_base_pool<T: Config>(
    currency_ids: Vec<T::CurrencyId>,
    currency_decimals: Vec<u32>,
    a: u128,
    fee: u128,
    admin_fee: u128,
    admin_fee_receiver: T::AccountId,
    lp_currency_symbol: Vec<u8>
)
Expand description

Create a stable amm pool.

Only admin can create pool.

Argument

  • currency_ids: The currencies will be join the created pool.
  • currency_decimals: The currencies corresponding decimals.
  • lp_currency_id: The specify lp currency id of the created pool.
  • a: The initial A of created pool.
  • fee: The swap fee of created pool.
  • admin_fee: The admin fee of created pool.
  • admin_fee_receiver: The admin fee receiver of created pool.
  • lp_currency_symbol: The symbol of created pool lp currency.
  • lp_currency_decimal: The decimal of created pool lp currency.

Warning: Doc-Only

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