Skip to content

Commit bddfc8f

Browse files
committed
hot fix for currency
1 parent 34b7c77 commit bddfc8f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

node/service/src/chain_spec/bifrost.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub type ChainSpec = sc_service::GenericChainSpec<GenesisConfig, RelayExtensions
4949

5050
#[allow(non_snake_case)]
5151
pub fn ENDOWMENT() -> u128 {
52-
1_000_000 * dollar(CurrencyId::Token(TokenSymbol::BNC))
52+
1_000_000 * dollar(CurrencyId::Native(TokenSymbol::BNC))
5353
}
5454

5555
pub fn bifrost_genesis(
@@ -326,7 +326,7 @@ fn bifrost_config_genesis(id: ParaId) -> GenesisConfig {
326326

327327
assert_eq!(
328328
total_issuance,
329-
32_000_000 * dollar(CurrencyId::Token(TokenSymbol::BNC)),
329+
32_000_000 * dollar(CurrencyId::Native(TokenSymbol::BNC)),
330330
"total issuance must be equal to 320 million"
331331
);
332332

runtime/bifrost/src/constants.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ pub mod currency {
3030
pub use sp_runtime::Perbill;
3131

3232
pub fn deposit(items: u32, bytes: u32) -> Balance {
33-
items as Balance * 15 * cent(CurrencyId::Token(TokenSymbol::BNC)) +
34-
(bytes as Balance) * 6 * cent(CurrencyId::Token(TokenSymbol::BNC))
33+
items as Balance * 15 * cent(CurrencyId::Native(TokenSymbol::BNC)) +
34+
(bytes as Balance) * 6 * cent(CurrencyId::Native(TokenSymbol::BNC))
3535
}
3636

3737
pub struct KsmWeightToFee;
@@ -70,7 +70,7 @@ pub mod currency {
7070
}
7171

7272
fn base_tx_fee() -> Balance {
73-
cent(CurrencyId::Token(TokenSymbol::BNC)) / 5
73+
cent(CurrencyId::Native(TokenSymbol::BNC)) / 5
7474
}
7575

7676
pub fn ksm_per_second() -> u128 {

0 commit comments

Comments
 (0)