Function serai_dex_pallet::pallet::dispatchables::remove_liquidity
source · pub fn remove_liquidity<T: Config>(
coin: ExternalCoin,
lp_token_burn: SubstrateAmount,
coin_min_receive: SubstrateAmount,
sri_min_receive: SubstrateAmount,
withdraw_to: T::AccountId,
)
Expand description
Allows you to remove liquidity by providing the lp_token_burn
tokens that will be
burned in the process. With the usage of amount1_min_receive
/amount2_min_receive
it’s possible to control the min amount of returned tokens you’re happy with.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::remove_liquidity
.