Skip to content

Commit

Permalink
Revert "set ltestEpochRefunded to previous one for staking reading - …
Browse files Browse the repository at this point in the history
…to be cleaned later"

This reverts commit c4b9b9a.
  • Loading branch information
mwamedacen committed Jan 3, 2024
1 parent c4b9b9a commit 762ab47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/gas-refund-program/staking/stakes-tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 762ab47

Please sign in to comment.