From ac3d7bd89cacc8a0cf63bc6319260f22530b8a9b Mon Sep 17 00:00:00 2001 From: alexshchur <60445720+alexshchur@users.noreply.github.com> Date: Tue, 13 Feb 2024 08:08:37 +0200 Subject: [PATCH] Revert "disable polygon as covlaent does not sync" This reverts commit 19793c088777200847efe3d4b8a11aac5c01dc7e. --- .../distribution/lib/computeDistributionMerkleData.ts | 11 ++++++----- src/lib/gas-refund/gas-refund.ts | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/gas-refund-program/distribution/lib/computeDistributionMerkleData.ts b/scripts/gas-refund-program/distribution/lib/computeDistributionMerkleData.ts index dc5d6a23..06dc4202 100644 --- a/scripts/gas-refund-program/distribution/lib/computeDistributionMerkleData.ts +++ b/scripts/gas-refund-program/distribution/lib/computeDistributionMerkleData.ts @@ -78,8 +78,9 @@ async function computeStakingChainsRefundedAmounts(epoch: number) { const stakeResolvers: { [chainId: number]: StakeV2Resolver } = {}; - const { startCalcTime, endCalcTime } = - await resolveEpochCalcTimeInterval(epoch); + const { startCalcTime, endCalcTime } = await resolveEpochCalcTimeInterval( + epoch, + ); for (const chainId of STAKING_CHAIN_IDS) { stakeResolvers[chainId] = StakeV2Resolver.getInstance(chainId); @@ -194,9 +195,9 @@ async function computeStakingChainsRefundedAmounts(epoch: number) { export async function computeDistributionMerkleData( epoch: number, ): Promise { - throw new Error('REENABLE POLYGON BEFORE DISTRIBUTING'); - const userRewardsOnStakingChains = - await computeStakingChainsRefundedAmounts(epoch); + const userRewardsOnStakingChains = await computeStakingChainsRefundedAmounts( + epoch, + ); const _allChainsRefunds: AddressRewards[] = Object.keys( userRewardsOnStakingChains, diff --git a/src/lib/gas-refund/gas-refund.ts b/src/lib/gas-refund/gas-refund.ts index e864d190..9b902260 100644 --- a/src/lib/gas-refund/gas-refund.ts +++ b/src/lib/gas-refund/gas-refund.ts @@ -15,7 +15,7 @@ export const GRP_SUPPORTED_CHAINS = [ isMainnetStaking ? undefined : CHAIN_ID_GOERLI, CHAIN_ID_MAINNET, CHAIN_ID_OPTIMISM, - //CHAIN_ID_POLYGON, + CHAIN_ID_POLYGON, CHAIN_ID_BINANCE, CHAIN_ID_FANTOM, ].filter(isTruthy);