diff --git a/crates/core/component/dex/src/trading_pair.rs b/crates/core/component/dex/src/trading_pair.rs index e24c51d02d..74915c906c 100644 --- a/crates/core/component/dex/src/trading_pair.rs +++ b/crates/core/component/dex/src/trading_pair.rs @@ -205,11 +205,7 @@ impl TryFrom for TradingPair { .ok_or_else(|| anyhow::anyhow!("missing trading pair asset2"))? .try_into()?; let trading_pair = TradingPair::new(asset_1, asset_2); - let result = Self { asset_1, asset_2 }; - if trading_pair != result { - return Err(anyhow::anyhow!("non-canonical trading pair")); - } - Ok(result) + Ok(trading_pair) } }