Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions node/service/src/chain_spec/bifrost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub type ChainSpec = sc_service::GenericChainSpec<GenesisConfig, RelayExtensions

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

pub fn bifrost_genesis(
Expand Down Expand Up @@ -326,7 +326,7 @@ fn bifrost_config_genesis(id: ParaId) -> GenesisConfig {

assert_eq!(
total_issuance,
32_000_000 * dollar(CurrencyId::Token(TokenSymbol::BNC)),
32_000_000 * dollar(CurrencyId::Native(TokenSymbol::BNC)),
"total issuance must be equal to 320 million"
);

Expand Down
6 changes: 3 additions & 3 deletions runtime/bifrost/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ pub mod currency {
pub use sp_runtime::Perbill;

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

pub struct KsmWeightToFee;
Expand Down Expand Up @@ -70,7 +70,7 @@ pub mod currency {
}

fn base_tx_fee() -> Balance {
cent(CurrencyId::Token(TokenSymbol::BNC)) / 5
cent(CurrencyId::Native(TokenSymbol::BNC)) / 5
}

pub fn ksm_per_second() -> u128 {
Expand Down