diff --git a/primitives/src/currency.rs b/primitives/src/currency.rs index 8a2a73b7c3..0c646f3fe8 100644 --- a/primitives/src/currency.rs +++ b/primitives/src/currency.rs @@ -194,6 +194,7 @@ create_currency_id! { KUSD("Karura Dollar", 12) = 129, KSM("Kusama", 12) = 130, LKSM("Liquid KSM", 12) = 131, + TAI("Taiga", 12) = 132, // 148 - 167: External tokens (e.g. bridged) // 149: Reserved for renBTC // 150: Reserved for CASH diff --git a/runtime/acala/src/lib.rs b/runtime/acala/src/lib.rs index 20df39c8a1..e0c9d5c676 100644 --- a/runtime/acala/src/lib.rs +++ b/runtime/acala/src/lib.rs @@ -751,6 +751,7 @@ parameter_type_with_key! { TokenSymbol::ACA | TokenSymbol::KBTC | TokenSymbol::KINT | + TokenSymbol::TAI | TokenSymbol::CASH => Balance::max_value() // unsupported }, CurrencyId::DexShare(dex_share_0, _) => { diff --git a/runtime/integration-tests/src/runtime.rs b/runtime/integration-tests/src/runtime.rs index f5d1de0dbf..11afb8f3cc 100644 --- a/runtime/integration-tests/src/runtime.rs +++ b/runtime/integration-tests/src/runtime.rs @@ -392,7 +392,7 @@ mod mandala_only_tests { // tips = 0 // operational extrinsic - let call = Call::Sudo(pallet_sudo::Call::sudo { call: Box::new(module_emergency_shutdown::Call::emergency_shutdown { }.into()) }); + let call = Call::Sudo(pallet_sudo::Call::sudo { call: Box::new(module_emergency_shutdown::Call::open_collateral_refund { }.into()) }); let bytes = UncheckedExtrinsic::new(call.clone().into(), None).expect("This should not fail").encode(); assert_eq!( @@ -403,7 +403,7 @@ mod mandala_only_tests { bytes.len() ), Ok(ValidTransaction { - priority: 43_824_742_400_000_000, + priority: 64_296_718_080_000_000, requires: vec![], provides: vec![], longevity: 18_446_744_073_709_551_615, diff --git a/runtime/karura/src/lib.rs b/runtime/karura/src/lib.rs index a89930423f..cc851d877a 100644 --- a/runtime/karura/src/lib.rs +++ b/runtime/karura/src/lib.rs @@ -760,6 +760,7 @@ parameter_type_with_key! { TokenSymbol::DOT | TokenSymbol::LDOT | TokenSymbol::RENBTC | + TokenSymbol::TAI | TokenSymbol::KAR | TokenSymbol::CASH => Balance::max_value() // unsupported }, diff --git a/runtime/mandala/src/lib.rs b/runtime/mandala/src/lib.rs index 51d7812325..7860ff9a2d 100644 --- a/runtime/mandala/src/lib.rs +++ b/runtime/mandala/src/lib.rs @@ -780,15 +780,15 @@ parameter_type_with_key! { TokenSymbol::BNC => 800 * millicent(*currency_id), // 80BNC = 1KSM TokenSymbol::VSKSM => 10 * millicent(*currency_id), // 1VSKSM = 1KSM TokenSymbol::PHA => 4000 * millicent(*currency_id), // 400PHA = 1KSM - - TokenSymbol::KAR | TokenSymbol::KUSD | TokenSymbol::KSM | TokenSymbol::LKSM | TokenSymbol::RENBTC | - TokenSymbol::ACA | TokenSymbol::KINT | TokenSymbol::KBTC | + TokenSymbol::TAI => 10 * millicent(*currency_id), + TokenSymbol::ACA | + TokenSymbol::KAR | TokenSymbol::CASH => Balance::max_value() // unsupported }, CurrencyId::DexShare(dex_share_0, _) => { @@ -1022,7 +1022,7 @@ where } parameter_types! { - pub CollateralCurrencyIds: Vec = vec![DOT, LDOT, RENBTC]; + pub CollateralCurrencyIds: Vec = vec![DOT, LDOT, RENBTC, CurrencyId::StableAssetPoolToken(0)]; pub DefaultLiquidationRatio: Ratio = Ratio::saturating_from_rational(110, 100); pub DefaultDebitExchangeRate: ExchangeRate = ExchangeRate::saturating_from_rational(1, 10); pub DefaultLiquidationPenalty: Rate = Rate::saturating_from_rational(5, 100);