Skip to content

Commit

Permalink
set ltestEpochRefunded to previous one for staking reading - to be cl…
Browse files Browse the repository at this point in the history
…eaned later
  • Loading branch information
mwamedacen committed Jan 3, 2024
1 parent 9f988d3 commit c4b9b9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/gas-refund-program/staking/stakes-tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ export default class StakesTracker {
}

async loadHistoricalStakes() {
const latestEpochRefunded = await getLatestEpochRefundedAllChains();
//const latestEpochRefunded = await getLatestEpochRefundedAllChains(); // FIXME

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 c4b9b9a

Please sign in to comment.