Skip to content

Commit

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

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

Please sign in to comment.