Trait common::LiquidityRegistry
source · pub trait LiquidityRegistry<DEXId, AccountId, AssetId, LiquiditySourceIndex, Amount, Error>: LiquiditySource<LiquiditySourceId<DEXId, LiquiditySourceIndex>, AccountId, AssetId, Amount, Error>where
DEXId: PartialEq + Clone + Copy,
LiquiditySourceIndex: PartialEq + Clone + Copy,{
// Required method
fn list_liquidity_sources(
input_asset_id: &AssetId,
output_asset_id: &AssetId,
filter: LiquiditySourceFilter<DEXId, LiquiditySourceIndex>
) -> Result<Vec<LiquiditySourceId<DEXId, LiquiditySourceIndex>>, Error>;
}
Required Methods§
sourcefn list_liquidity_sources(
input_asset_id: &AssetId,
output_asset_id: &AssetId,
filter: LiquiditySourceFilter<DEXId, LiquiditySourceIndex>
) -> Result<Vec<LiquiditySourceId<DEXId, LiquiditySourceIndex>>, Error>
fn list_liquidity_sources( input_asset_id: &AssetId, output_asset_id: &AssetId, filter: LiquiditySourceFilter<DEXId, LiquiditySourceIndex> ) -> Result<Vec<LiquiditySourceId<DEXId, LiquiditySourceIndex>>, Error>
Enumerate available liquidity sources which provide exchange with for given input->output tokens.