Skip to content

Commit

Permalink
Include buy/sell hybrid-router calls in proxy filters (#1343)
Browse files Browse the repository at this point in the history
* Include buy/sell calls in proxy filters

* Add hybrid-router calls to HandleAssets

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
saboonikhil and mergify[bot] authored Jun 12, 2024
1 parent 9e0c522 commit 39374a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions runtime/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,15 +982,19 @@ macro_rules! impl_config_traits {
),
ProxyType::Trading => matches!(
c,
RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::buy { .. })
RuntimeCall::HybridRouter(zrml_hybrid_router::Call::buy { .. })
| RuntimeCall::HybridRouter(zrml_hybrid_router::Call::sell { .. })
| RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::buy { .. })
| RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::sell { .. })
| RuntimeCall::Orderbook(zrml_orderbook::Call::place_order { .. })
| RuntimeCall::Orderbook(zrml_orderbook::Call::fill_order { .. })
| RuntimeCall::Orderbook(zrml_orderbook::Call::remove_order { .. })
),
ProxyType::HandleAssets => matches!(
c,
RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::join { .. })
RuntimeCall::HybridRouter(zrml_hybrid_router::Call::buy { .. })
| RuntimeCall::HybridRouter(zrml_hybrid_router::Call::sell { .. })
| RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::join { .. })
| RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::exit { .. })
| RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::buy { .. })
| RuntimeCall::NeoSwaps(zrml_neo_swaps::Call::sell { .. })
Expand Down

0 comments on commit 39374a0

Please sign in to comment.