Skip to content

Commit

Permalink
Add blacklisted chains to getBlock function
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Feb 9, 2024
1 parent 8262c86 commit 9edd60e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helpers/getBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ import * as sdk from "@defillama/sdk"
import { httpGet } from "../utils/fetchURL";
const retry = require("async-retry")

const blacklistedChains = ['sui']

async function getBlock(timestamp: number, chain: Chain, chainBlocks = {} as ChainBlocks) {
if (blacklistedChains.includes(chain)) {
return null
}
if (chainBlocks[chain] !== undefined)
return chainBlocks[chain]

Expand Down

0 comments on commit 9edd60e

Please sign in to comment.