Skip to content

Commit

Permalink
solana hashflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0xngmi committed Apr 2, 2024
1 parent 1121d15 commit 9b0e716
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dexs/hashflow/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { CHAIN } from "../../helpers/chains";
import { getUniqStartOfTodayTimestamp } from "../../helpers/getUniSubgraphVolume";
import { httpGet } from "../../utils/fetchURL";

const chains = [CHAIN.ETHEREUM, CHAIN.AVAX, CHAIN.BSC, CHAIN.ARBITRUM, CHAIN.OPTIMISM, CHAIN.POLYGON]
const chains = [CHAIN.ETHEREUM, CHAIN.AVAX, CHAIN.BSC, CHAIN.ARBITRUM, CHAIN.OPTIMISM, CHAIN.POLYGON, CHAIN.SOLANA]

const dateToTs = (date: string) => new Date(date).getTime() / 1000
const normalizeChain = (c: string) => {
if (c === "bnb") return CHAIN.BSC
if (c === "avalanche") return CHAIN.AVAX
if(c === "solana-mainnet") return CHAIN.SOLANA
return c
}

Expand Down

0 comments on commit 9b0e716

Please sign in to comment.