Skip to content

Commit

Permalink
pangolin
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Sep 16, 2024
1 parent e6f5dd8 commit d42012c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions dexs/camelot/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as sdk from "@defillama/sdk";
import { CHAIN } from "../../helpers/chains";
import { univ2Adapter } from "../../helpers/getUniSubgraphVolume";
import { univ2Adapter2 } from "../../helpers/getUniSubgraphVolume";

const adapters = univ2Adapter({
const adapters = univ2Adapter2({
[CHAIN.ARBITRUM]: sdk.graph.modifyEndpoint('8zagLSufxk5cVhzkzai3tyABwJh53zxn9tmUYJcJxijG')
}, {});

Expand Down
16 changes: 10 additions & 6 deletions dexs/pangolin/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import * as sdk from "@defillama/sdk";
import { univ2Adapter } from "../../helpers/getUniSubgraphVolume";
import { univ2Adapter2 } from "../../helpers/getUniSubgraphVolume";

export default univ2Adapter({
"avax": sdk.graph.modifyEndpoint('CPXTDcwh6tVP88QvFWW7pdvZJsCN4hSnfMmYeF1sxCLq')
}, {
export default univ2Adapter2(
{
avax: sdk.graph.modifyEndpoint(
"CPXTDcwh6tVP88QvFWW7pdvZJsCN4hSnfMmYeF1sxCLq",
),
},
{
factoriesName: "pangolinFactories",
dayData: "pangolinDayData",
});
},
);
7 changes: 2 additions & 5 deletions dexs/thena/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import * as sdk from "@defillama/sdk";
import { CHAIN } from "../../helpers/chains";
import { univ2Adapter } from "../../helpers/getUniSubgraphVolume";
import { univ2Adapter2 } from "../../helpers/getUniSubgraphVolume";

const adapters = univ2Adapter({
const adapters = univ2Adapter2({
[CHAIN.BSC]: sdk.graph.modifyEndpoint('FKEt2N5VmSdEYcz7fYLPvvnyEUkReQ7rvmXzs6tiKCz1')
}, {
factoriesName: "factories",
totalVolume: "totalVolumeUSD",
dayData: "dayData",
dailyVolume: "dailyVolumeUSD",
dailyVolumeTimestampField: "date"
});

adapters.adapter.bsc.start = 1672790400;
Expand Down

0 comments on commit d42012c

Please sign in to comment.