Skip to content

Commit

Permalink
add revoswap
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Apr 23, 2024
1 parent 28b9bee commit 1e4eee7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
16 changes: 16 additions & 0 deletions dexs/revoswap/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { univ2Adapter } from "../../helpers/getUniSubgraphVolume";
import { CHAIN } from "../../helpers/chains";

const endpoints = {
[CHAIN.XLAYER]: "https://graph.revoswap.com/subgraphs/name/okx-mainnet/exchange",
};

const adapter = univ2Adapter(endpoints, {
factoriesName: "pancakeFactories",
dayData: "pancakeDayData"
});

adapter.adapter[CHAIN.XLAYER].start = 1713225600;


export default adapter
1 change: 1 addition & 0 deletions helpers/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export enum CHAIN {
SVM = "svm",
ASTRZK = "astrzk",
LYRA = "lyra",
XLAYER = "xlayer"
}

// Don´t use
Expand Down
3 changes: 2 additions & 1 deletion helpers/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,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",
SVM_RPC: "https://rpc.cosvm.net"
SVM_RPC: "https://rpc.cosvm.net",
XLAYER_RPC: "https://xlayerrpc.okx.com",
}

export const ENV_KEYS = new Set([
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e4eee7

Please sign in to comment.