Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
add Homa to ProxyType
  • Loading branch information
wangjj9219 committed Jun 10, 2022
commit dd4ae363738419c102993bbbe75cd3a4e645ea1b
6 changes: 6 additions & 0 deletions runtime/acala/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,12 @@ impl InstanceFilter<Call> for ProxyType {
)
}
ProxyType::StableAssetLiquidity | ProxyType::StableAssetSwap => false,
ProxyType::Homa => {
matches!(
c,
Call::Homa(module_homa::Call::mint { .. }) | Call::Homa(module_homa::Call::request_redeem { .. })
)
}
}
}
fn is_superset(&self, o: &Self) -> bool {
Expand Down
1 change: 1 addition & 0 deletions runtime/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ pub enum ProxyType {
DexLiquidity,
StableAssetSwap,
StableAssetLiquidity,
Homa,
}

impl Default for ProxyType {
Expand Down
6 changes: 6 additions & 0 deletions runtime/karura/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,12 @@ impl InstanceFilter<Call> for ProxyType {
| Call::StableAsset(nutsfinance_stable_asset::Call::redeem_multi { .. })
)
}
ProxyType::Homa => {
matches!(
c,
Call::Homa(module_homa::Call::mint { .. }) | Call::Homa(module_homa::Call::request_redeem { .. })
)
}
}
}
fn is_superset(&self, o: &Self) -> bool {
Expand Down
6 changes: 6 additions & 0 deletions runtime/mandala/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,12 @@ impl InstanceFilter<Call> for ProxyType {
| Call::StableAsset(nutsfinance_stable_asset::Call::redeem_multi { .. })
)
}
ProxyType::Homa => {
matches!(
c,
Call::Homa(module_homa::Call::mint { .. }) | Call::Homa(module_homa::Call::request_redeem { .. })
)
}
}
}
fn is_superset(&self, o: &Self) -> bool {
Expand Down