Skip to content

Commit

Permalink
Revert "disable polygon as covlaent does not sync"
Browse files Browse the repository at this point in the history
This reverts commit 19793c0.
  • Loading branch information
alexshchur committed Feb 10, 2024
1 parent 19793c0 commit ed40708
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -194,9 +195,9 @@ async function computeStakingChainsRefundedAmounts(epoch: number) {
export async function computeDistributionMerkleData(
epoch: number,
): Promise<MerkleTreeAndChain[]> {
throw new Error('REENABLE POLYGON BEFORE DISTRIBUTING');
const userRewardsOnStakingChains =
await computeStakingChainsRefundedAmounts(epoch);
const userRewardsOnStakingChains = await computeStakingChainsRefundedAmounts(
epoch,
);

const _allChainsRefunds: AddressRewards[] = Object.keys(
userRewardsOnStakingChains,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/gas-refund/gas-refund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed40708

Please sign in to comment.