referrerpolicy=no-referrer-when-downgrade

create_pool_with_fee

Function create_pool_with_fee 

Source
pub fn create_pool_with_fee<T: Config>(
    creator: T::AccountId,
    asset1: Box<T::AssetKind>,
    asset2: Box<T::AssetKind>,
    fee: Permill,
)
Expand description

Like Pallet::create_pool, but sets an initial per-pool swap fee overriding the global Config::LPFee.

Requires Config::AdminOrigin. creator pays the pool setup fee and deposits. fee must not exceed Config::MaxSwapFee.

Emits both Event::PoolCreated and Event::PoolFeeSet on success.

§Warning: Doc-Only

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