Function dex_general::pallet::dispatchables::remove_liquidity
source · pub fn remove_liquidity<T: Config>(
asset_0: T::AssetId,
asset_1: T::AssetId,
liquidity: AssetBalance,
amount_0_min: AssetBalance,
amount_1_min: AssetBalance,
recipient: <T::Lookup as StaticLookup>::Source,
deadline: BlockNumberFor<T>
)
Expand description
Extract liquidity.
The order of assets does not effect the result.
Arguments
asset_0
: Asset which make up pairasset_1
: Asset which make up pairamount_asset_0_min
: Minimum amount of asset_0 to exactamount_asset_1_min
: Minimum amount of asset_1 to exactrecipient
: Account that accepts withdrawal of assetsdeadline
: 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
.