diff --git a/scripts/gas-refund-program/distribution/lib/computeDistributionMerkleData.ts b/scripts/gas-refund-program/distribution/lib/computeDistributionMerkleData.ts index 06dc4202..dc5d6a23 100644 --- a/scripts/gas-refund-program/distribution/lib/computeDistributionMerkleData.ts +++ b/scripts/gas-refund-program/distribution/lib/computeDistributionMerkleData.ts @@ -78,9 +78,8 @@ 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); @@ -195,9 +194,9 @@ async function computeStakingChainsRefundedAmounts(epoch: number) { export async function computeDistributionMerkleData( epoch: number, ): Promise { - const userRewardsOnStakingChains = await computeStakingChainsRefundedAmounts( - epoch, - ); + throw new Error('REENABLE POLYGON BEFORE DISTRIBUTING'); + 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 9b902260..e864d190 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);