diff --git a/dexs/savmswap/index.ts b/dexs/savmswap/index.ts new file mode 100644 index 0000000000..30d4e502e5 --- /dev/null +++ b/dexs/savmswap/index.ts @@ -0,0 +1,11 @@ +import { CHAIN } from "../../helpers/chains"; +import { univ2Adapter } from "../../helpers/getUniSubgraphVolume"; + +const adapter = univ2Adapter({ + [CHAIN.SVM]: "https://subgraph.8gr.xyz/subgraphs/name/savmswap/savmswap", +}, { + hasTotalVolume: false, +}); + +adapter.adapter.svm.start = 1711411200 +export default adapter diff --git a/helpers/chains.ts b/helpers/chains.ts index ad217994c5..f1b46d8da3 100644 --- a/helpers/chains.ts +++ b/helpers/chains.ts @@ -142,7 +142,8 @@ export enum CHAIN { FRAXTAL = "fraxtal", IMX = "imx", KROMA = "kroma", - ZORA = "zora" + ZORA = "zora", + SVM = "svm", } // DonĀ“t use diff --git a/helpers/env.ts b/helpers/env.ts index 09256c464c..086fd7f6ec 100644 --- a/helpers/env.ts +++ b/helpers/env.ts @@ -4,7 +4,8 @@ const BOOL_KEYS = [ const DEFAULTS: any = { ANKR_API_KEY: '79258ce7f7ee046decc3b5292a24eb4bf7c910d7e39b691384c7ce0cfb839a01', - ZETA_RPC: "https://zetachain-evm.blockpi.network/v1/rpc/public,https://zetachain-mainnet-archive.allthatnode.com:8545" + ZETA_RPC: "https://zetachain-evm.blockpi.network/v1/rpc/public,https://zetachain-mainnet-archive.allthatnode.com:8545", + SVM_RPC: "https://rpc.cosvm.net" } export const ENV_KEYS = new Set([ @@ -38,4 +39,3 @@ export function getEnv(key: string): any { const value = process.env[key] ?? DEFAULTS[key] return BOOL_KEYS.includes(key) ? !!value : value } -