From 1b08d62bf27d962c4afae7408033d3d68773f334 Mon Sep 17 00:00:00 2001 From: Muhammad-Jibril Date: Tue, 31 Aug 2021 05:37:00 +0800 Subject: [PATCH 1/3] Support DustRemovalWhitelist --- lib-serml/tokens/currencies/src/mock.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib-serml/tokens/currencies/src/mock.rs b/lib-serml/tokens/currencies/src/mock.rs index f7efc3593..683b24d65 100644 --- a/lib-serml/tokens/currencies/src/mock.rs +++ b/lib-serml/tokens/currencies/src/mock.rs @@ -109,6 +109,7 @@ impl tokens::Config for Runtime { type OnDust = tokens::TransferDust; type WeightInfo = (); type MaxLocks = MaxLocks; + type DustRemovalWhitelist = (); } pub const NATIVE_CURRENCY_ID: CurrencyId = CurrencyId::Token(TokenSymbol::DNAR); From bc9c98b25c475b75b4a1ed140a95d9ef0f2f412b Mon Sep 17 00:00:00 2001 From: Muhammad-Jibril Date: Tue, 31 Aug 2021 05:43:22 +0800 Subject: [PATCH 2/3] Update mock.rs --- lib-serml/tokens/currencies/src/mock.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib-serml/tokens/currencies/src/mock.rs b/lib-serml/tokens/currencies/src/mock.rs index 683b24d65..7fa066603 100644 --- a/lib-serml/tokens/currencies/src/mock.rs +++ b/lib-serml/tokens/currencies/src/mock.rs @@ -50,7 +50,6 @@ pub const SETEUR: CurrencyId = CurrencyId::Token(TokenSymbol::SETEUR); pub const SETGBP: CurrencyId = CurrencyId::Token(TokenSymbol::SETGBP); pub const SETCHF: CurrencyId = CurrencyId::Token(TokenSymbol::SETCHF); pub const SETSAR: CurrencyId = CurrencyId::Token(TokenSymbol::SETSAR); -pub const BTC: CurrencyId = CurrencyId::Token(TokenSymbol::RENBTC); parameter_types! { @@ -239,7 +238,7 @@ thread_local! { pub struct MockPriceSource; impl MockPriceSource { - pub fn set_relative_price(price: Option) { + pub fn _set_relative_price(price: Option) { RELATIVE_PRICE.with(|v| *v.borrow_mut() = price); } } From c23c62c782248318cefe4283d500e0329b90b233 Mon Sep 17 00:00:00 2001 From: Muhammad-Jibril Date: Tue, 31 Aug 2021 05:46:22 +0800 Subject: [PATCH 3/3] Rename currency Ren Bitcoin to RenBTC #486 --- primitives/src/currency.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primitives/src/currency.rs b/primitives/src/currency.rs index 5d307110d..906469185 100644 --- a/primitives/src/currency.rs +++ b/primitives/src/currency.rs @@ -243,7 +243,7 @@ create_currency_id! { SETCHF("SetFranc", 12) = 6, SETSAR("SetRiyal", 12) = 7, // Foreign Currencies - RENBTC("Ren Bitcoin", 8) = 8, + RENBTC("RenBTC", 8) = 8, } }