Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix Clippy
  • Loading branch information
vovac12 committed Dec 4, 2023
commit 63bd12d3399affd81d8c83bdd9abfd3cf41c8c1f
42 changes: 21 additions & 21 deletions pallets/price-tools/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,53 +275,53 @@ pub struct TradingPair;

impl common::TradingPairSourceManager<DEXId, AssetId> for TradingPair {
fn list_enabled_sources_for_trading_pair(
dex_id: &DEXId,
base_asset_id: &AssetId,
target_asset_id: &AssetId,
_dex_id: &DEXId,
_base_asset_id: &AssetId,
_target_asset_id: &AssetId,
) -> Result<scale_info::prelude::collections::BTreeSet<LiquiditySourceType>, DispatchError>
{
Ok(Default::default())
}

fn is_source_enabled_for_trading_pair(
dex_id: &DEXId,
base_asset_id: &AssetId,
target_asset_id: &AssetId,
source_type: LiquiditySourceType,
_dex_id: &DEXId,
_base_asset_id: &AssetId,
_target_asset_id: &AssetId,
_source_type: LiquiditySourceType,
) -> Result<bool, DispatchError> {
Ok(false)
}

fn enable_source_for_trading_pair(
dex_id: &DEXId,
base_asset_id: &AssetId,
target_asset_id: &AssetId,
source_type: LiquiditySourceType,
_dex_id: &DEXId,
_base_asset_id: &AssetId,
_target_asset_id: &AssetId,
_source_type: LiquiditySourceType,
) -> frame_support::pallet_prelude::DispatchResult {
Ok(())
}

fn disable_source_for_trading_pair(
dex_id: &DEXId,
base_asset_id: &AssetId,
target_asset_id: &AssetId,
source_type: LiquiditySourceType,
_dex_id: &DEXId,
_base_asset_id: &AssetId,
_target_asset_id: &AssetId,
_source_type: LiquiditySourceType,
) -> frame_support::pallet_prelude::DispatchResult {
Ok(())
}

fn is_trading_pair_enabled(
dex_id: &DEXId,
base_asset_id: &AssetId,
target_asset_id: &AssetId,
_dex_id: &DEXId,
_base_asset_id: &AssetId,
_target_asset_id: &AssetId,
) -> Result<bool, DispatchError> {
Ok(false)
}

fn register_pair(
dex_id: DEXId,
base_asset_id: AssetId,
target_asset_id: AssetId,
_dex_id: DEXId,
_base_asset_id: AssetId,
_target_asset_id: AssetId,
) -> Result<(), DispatchError> {
Ok(())
}
Expand Down