From 78dd7f921ae7d87d68579ebec16e8e9328b9534b Mon Sep 17 00:00:00 2001 From: Ermal Kaleci Date: Thu, 5 Sep 2024 08:56:25 +0200 Subject: [PATCH] fix migration --- pallets/dapp-staking/src/migration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/dapp-staking/src/migration.rs b/pallets/dapp-staking/src/migration.rs index f782110e2..79fa7e858 100644 --- a/pallets/dapp-staking/src/migration.rs +++ b/pallets/dapp-staking/src/migration.rs @@ -519,7 +519,7 @@ impl OnRuntimeUpgrade for AdjustEraMigration { let current_block_number = frame_system::Pallet::::block_number().saturated_into::(); let remaining = state.next_era_start.saturating_sub(current_block_number); - state.next_era_start.saturating_accrue(2 * remaining); + state.next_era_start.saturating_accrue(remaining); } }); T::DbWeight::get().reads_writes(1, 1)