Skip to content

Commit

Permalink
Merge pull request #505 from Setheum-Labs/tokens-blend
Browse files Browse the repository at this point in the history
Tokens blend - Currencies
  • Loading branch information
balqaasem authored Aug 30, 2021
2 parents 39b6dbf + c23c62c commit 383cd5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib-serml/tokens/currencies/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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! {
Expand Down Expand Up @@ -109,6 +108,7 @@ impl tokens::Config for Runtime {
type OnDust = tokens::TransferDust<Runtime, DustAccount>;
type WeightInfo = ();
type MaxLocks = MaxLocks;
type DustRemovalWhitelist = ();
}

pub const NATIVE_CURRENCY_ID: CurrencyId = CurrencyId::Token(TokenSymbol::DNAR);
Expand Down Expand Up @@ -238,7 +238,7 @@ thread_local! {

pub struct MockPriceSource;
impl MockPriceSource {
pub fn set_relative_price(price: Option<Price>) {
pub fn _set_relative_price(price: Option<Price>) {
RELATIVE_PRICE.with(|v| *v.borrow_mut() = price);
}
}
Expand Down
2 changes: 1 addition & 1 deletion primitives/src/currency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit 383cd5a

Please sign in to comment.