Function dex_stable::pallet::dispatchables::remove_liquidity
source · pub fn remove_liquidity<T: Config>(
pool_id: T::PoolId,
lp_amount: u128,
min_amounts: Vec<u128>,
to: T::AccountId,
deadline: BlockNumberFor<T>
)
Expand description
Remove liquidity from a pool.
Argument
pool_id
: The id of pool.lp_amount
: The amounts of lp currency.min_amounts
: The min amounts of pool’s currencies to get.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_liquidity
.