Skip to content

Commit

Permalink
storage version checks adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
ipapandinas committed Jul 26, 2024
1 parent 68887d7 commit 27a6d32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/astar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ impl OnRuntimeUpgrade for StaticTierParamsMigration {
let onchain_storage_version =
pallet_dapp_staking_v3::Pallet::<Runtime>::on_chain_storage_version();

if onchain_storage_version < 8 {
if onchain_storage_version == 8 {
let tier_thresholds = BoundedVec::try_from(vec![
TierThreshold::DynamicPercentage {
current_percentage: Perbill::from_parts(35_700_000), // 3.57%
Expand Down
2 changes: 1 addition & 1 deletion runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ impl OnRuntimeUpgrade for StaticTierParamsMigration {
let onchain_storage_version =
pallet_dapp_staking_v3::Pallet::<Runtime>::on_chain_storage_version();

if onchain_storage_version < 8 {
if onchain_storage_version == 8 {
let tier_thresholds = BoundedVec::try_from(vec![
TierThreshold::DynamicPercentage {
current_percentage: Perbill::from_parts(20_000), // 0.0020%
Expand Down
2 changes: 1 addition & 1 deletion runtime/shiden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ impl OnRuntimeUpgrade for StaticTierParamsMigration {
let onchain_storage_version =
pallet_dapp_staking_v3::Pallet::<Runtime>::on_chain_storage_version();

if onchain_storage_version < 8 {
if onchain_storage_version == 8 {
let tier_thresholds = BoundedVec::try_from(vec![
TierThreshold::DynamicPercentage {
current_percentage: Perbill::from_parts(35_700_000), // 3.57%
Expand Down

0 comments on commit 27a6d32

Please sign in to comment.