Function dex_stable::pallet::dispatchables::remove_pool_and_base_pool_liquidity_one_currency
source · pub fn remove_pool_and_base_pool_liquidity_one_currency<T: Config>(
pool_id: T::PoolId,
base_pool_id: T::PoolId,
amount: u128,
i: u32,
min_amount: u128,
to: T::AccountId,
deadline: BlockNumberFor<T>
)
Expand description
Remove liquidity from a pool which contains the lp currency of the base pool to get one currency.
Argument
pool_id
: The id of pool.base_pool_id
: The id of base pool.amount
: The amounts of lp currency to burn.i
: The index of target currency in basic pool.min_amount
: The min amounts of received 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::remove_pool_and_base_pool_liquidity_one_currency
.