From 762ab47435fddf8365be951eae8f0c1f4efad763 Mon Sep 17 00:00:00 2001 From: Mohamed Hassen Mami Date: Wed, 3 Jan 2024 13:12:25 +0100 Subject: [PATCH] Revert "set ltestEpochRefunded to previous one for staking reading - to be cleaned later" This reverts commit c4b9b9a540fbe77de9e92cbea3d10fe21969cb24. --- scripts/gas-refund-program/staking/stakes-tracker.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/gas-refund-program/staking/stakes-tracker.ts b/scripts/gas-refund-program/staking/stakes-tracker.ts index 61d05e0a..c3b2a4b6 100644 --- a/scripts/gas-refund-program/staking/stakes-tracker.ts +++ b/scripts/gas-refund-program/staking/stakes-tracker.ts @@ -70,13 +70,12 @@ export default class StakesTracker { } async loadHistoricalStakes() { - //const latestEpochRefunded = await getLatestEpochRefundedAllChains(); // FIXME + const latestEpochRefunded = await getLatestEpochRefundedAllChains(); const endTime = SCRIPT_START_TIME_SEC - OFFSET_CALC_TIME; // V2 const currentEpoch = getCurrentEpoch(); - const latestEpochRefunded = currentEpoch - 1; // FIXME if (currentEpoch >= GasRefundV2EpochFlip) { let startTimeStakeV2 = await getEpochStartCalcTime( latestEpochRefunded || GasRefundV2EpochFlip,