diff --git a/runtime/asgard/src/lib.rs b/runtime/asgard/src/lib.rs index 12e46be74c..7bd1bdb9b9 100644 --- a/runtime/asgard/src/lib.rs +++ b/runtime/asgard/src/lib.rs @@ -1113,18 +1113,18 @@ impl orml_currencies::Config for Runtime { orml_traits::parameter_type_with_key! { pub ExistentialDeposits: |currency_id: CurrencyId| -> Balance { match currency_id { - &CurrencyId::Native(TokenSymbol::ASG) => 10 * MILLIBNC, + &CurrencyId::Native(TokenSymbol::ASG) => 10 * MILLIBNC, // 0.01 BNC &CurrencyId::Stable(TokenSymbol::KUSD) => 10 * MILLICENTS, - &CurrencyId::Token(TokenSymbol::KSM) => 10 * MILLICENTS, + &CurrencyId::Token(TokenSymbol::KSM) => 10 * MILLICENTS, // 0.0001 KSM &CurrencyId::Token(TokenSymbol::KAR) => 10 * MILLICENTS, - &CurrencyId::Token(TokenSymbol::DOT) => 10 * MILLICENTS, + &CurrencyId::Token(TokenSymbol::DOT) => 100_000_000, // DOT has a decimals of 10e10, 0.01 DOT &CurrencyId::Token(TokenSymbol::ZLK) => 1_000_000_000_000, // ZLK has a decimals of 10e18 &CurrencyId::VSToken(TokenSymbol::KSM) => 10 * MILLICENTS, - &CurrencyId::VSToken(TokenSymbol::DOT) => 10 * MILLICENTS, + &CurrencyId::VSToken(TokenSymbol::DOT) => 100_000_000, &CurrencyId::VSBond(TokenSymbol::ASG, ..) => 10 * MILLICENTS, &CurrencyId::VSBond(TokenSymbol::KSM, ..) => 10 * MILLICENTS, &CurrencyId::VSBond(TokenSymbol::BNC, ..) => 10 * MILLICENTS, - &CurrencyId::VSBond(TokenSymbol::DOT, ..) => 10 * MILLICENTS, + &CurrencyId::VSBond(TokenSymbol::DOT, ..) => 100_000_000, &CurrencyId::LPToken(..) => 10 * MILLICENTS, _ => Balance::max_value() // unsupported } diff --git a/runtime/bifrost/src/lib.rs b/runtime/bifrost/src/lib.rs index 20685aa52f..18055659f0 100644 --- a/runtime/bifrost/src/lib.rs +++ b/runtime/bifrost/src/lib.rs @@ -184,6 +184,13 @@ parameter_types! { pub struct CallFilter; impl Contains for CallFilter { fn contains(call: &Call) -> bool { + let is_core_call = + matches!(call, Call::System(_) | Call::Timestamp(_) | Call::ParachainSystem(_)); + if is_core_call { + // always allow core call + return true; + } + // temporarily ban ZLK transfer and PhragmenElection let is_temporarily_banned = matches!( call, @@ -210,13 +217,6 @@ impl Contains for CallFilter { return false; } - let is_core_call = - matches!(call, Call::System(_) | Call::Timestamp(_) | Call::ParachainSystem(_)); - if is_core_call { - // always allow core call - return true; - } - let is_switched_off = bifrost_call_switchgear::SwitchOffTransactionFilter::::contains(call); if is_switched_off { @@ -1121,17 +1121,17 @@ impl orml_currencies::Config for Runtime { orml_traits::parameter_type_with_key! { pub ExistentialDeposits: |currency_id: CurrencyId| -> Balance { match currency_id { - &CurrencyId::Native(TokenSymbol::BNC) => 10 * MILLIBNC, + &CurrencyId::Native(TokenSymbol::BNC) => 10 * MILLIBNC, // 0.01 BNC &CurrencyId::Stable(TokenSymbol::KUSD) => 10 * MILLICENTS, - &CurrencyId::Token(TokenSymbol::KSM) => 10 * MILLICENTS, + &CurrencyId::Token(TokenSymbol::KSM) => 10 * MILLICENTS, // 0.0001 KSM &CurrencyId::Token(TokenSymbol::KAR) => 10 * MILLICENTS, - &CurrencyId::Token(TokenSymbol::DOT) => 10 * MILLICENTS, + &CurrencyId::Token(TokenSymbol::DOT) => 100_000_000, // DOT has a decimals of 10e10, 0.01 DOT &CurrencyId::Token(TokenSymbol::ZLK) => 1_000_000_000_000, // ZLK has a decimals of 10e18 &CurrencyId::VSToken(TokenSymbol::KSM) => 10 * MILLICENTS, - &CurrencyId::VSToken(TokenSymbol::DOT) => 10 * MILLICENTS, + &CurrencyId::VSToken(TokenSymbol::DOT) => 100_000_000, &CurrencyId::VSBond(TokenSymbol::BNC, ..) => 10 * MILLICENTS, &CurrencyId::VSBond(TokenSymbol::KSM, ..) => 10 * MILLICENTS, - &CurrencyId::VSBond(TokenSymbol::DOT, ..) => 10 * MILLICENTS, + &CurrencyId::VSBond(TokenSymbol::DOT, ..) => 100_000_000, &CurrencyId::LPToken(..) => 10 * MILLICENTS, _ => Balance::max_value() // unsupported }