Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mandala deployment #1713

Merged
merged 6 commits into from
Dec 20, 2021
Merged
Show file tree
Hide file tree
Changes from 4 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
1 change: 1 addition & 0 deletions primitives/src/currency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions runtime/acala/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, _) => {
Expand Down
1 change: 1 addition & 0 deletions runtime/karura/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ parameter_type_with_key! {
TokenSymbol::DOT |
TokenSymbol::LDOT |
TokenSymbol::RENBTC |
TokenSymbol::TAI |
TokenSymbol::KAR |
TokenSymbol::CASH => Balance::max_value() // unsupported
},
Expand Down
5 changes: 3 additions & 2 deletions runtime/mandala/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,8 @@ parameter_type_with_key! {
TokenSymbol::ACA |
TokenSymbol::KINT |
TokenSymbol::KBTC |
TokenSymbol::CASH => Balance::max_value() // unsupported
TokenSymbol::TAI |
TokenSymbol::CASH => 10 * millicent(*currency_id)
zjb0807 marked this conversation as resolved.
Show resolved Hide resolved
},
CurrencyId::DexShare(dex_share_0, _) => {
let currency_id_0: CurrencyId = (*dex_share_0).into();
Expand Down Expand Up @@ -1022,7 +1023,7 @@ where
}

parameter_types! {
pub CollateralCurrencyIds: Vec<CurrencyId> = vec![DOT, LDOT, RENBTC];
pub CollateralCurrencyIds: Vec<CurrencyId> = 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);
Expand Down