Skip to content

Commit

Permalink
refactor: 💡 update MaximumUnlockIdOfTimeUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
yooml committed Nov 25, 2024
1 parent a9098fb commit d7e0692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 2 additions & 6 deletions runtime/bifrost-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("bifrost"),
impl_name: create_runtime_str!("bifrost"),
authoring_version: 1,
spec_version: 15000,
spec_version: 15001,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -1539,7 +1539,7 @@ impl bifrost_vtoken_minting::OnRedeemSuccess<AccountId, CurrencyId, Balance> for

parameter_types! {
pub const MaximumUnlockIdOfUser: u32 = 10;
pub const MaximumUnlockIdOfTimeUnit: u32 = 50;
pub const MaximumUnlockIdOfTimeUnit: u32 = 1000;
pub BifrostFeeAccount: AccountId = TreasuryPalletId::get().into_account_truncating();
}

Expand Down Expand Up @@ -2000,12 +2000,8 @@ pub mod migrations {

/// Unreleased migrations. Add new ones here:
pub type Unreleased = (
bifrost_parachain_staking::migrations::RemoveDelegatorReserveToLockAndCollatorReserveToLock<
Runtime,
>,
// permanent migration, do not remove
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
bifrost_flexible_fee::migrations::v3::MigrateToV3<Runtime>,
);
}

Expand Down
7 changes: 2 additions & 5 deletions runtime/bifrost-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("bifrost_polkadot"),
impl_name: create_runtime_str!("bifrost_polkadot"),
authoring_version: 0,
spec_version: 15000,
spec_version: 15001,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -1392,7 +1392,7 @@ impl bifrost_vtoken_minting::OnRedeemSuccess<AccountId, CurrencyId, Balance> for

parameter_types! {
pub const MaximumUnlockIdOfUser: u32 = 10;
pub const MaximumUnlockIdOfTimeUnit: u32 = 50;
pub const MaximumUnlockIdOfTimeUnit: u32 = 1000;
pub BifrostFeeAccount: AccountId = TreasuryPalletId::get().into_account_truncating();
}

Expand Down Expand Up @@ -1902,9 +1902,6 @@ pub mod migrations {
pub type Unreleased = (
// permanent migration, do not remove
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
bifrost_parachain_staking::migrations::InitGenesisMigration<Runtime>,
frame_support::migrations::RemovePallet<CollatorSelectionName, RocksDbWeight>,
bifrost_flexible_fee::migrations::v3::PolkadotMigrateToV3<Runtime>,
);
}

Expand Down

0 comments on commit d7e0692

Please sign in to comment.