Skip to content

Commit

Permalink
Merge pull request #1962 from DefiLlama/2oct-patches
Browse files Browse the repository at this point in the history
2oct patches
  • Loading branch information
waynebruce0x authored Oct 3, 2024
2 parents a74ff0e + 1bbba94 commit db59223
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dexs/jibswap/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CHAIN } from "../../helpers/chains";
import { univ2Adapter } from "../../helpers/getUniSubgraphVolume";
import { univ2Adapter2 } from "../../helpers/getUniSubgraphVolume";

const adapters = univ2Adapter({
const adapters = univ2Adapter2({
[CHAIN.JBC]: "https://graph.jibswap.com/subgraphs/name/jibswap",
}, {});

Expand Down
4 changes: 2 additions & 2 deletions dexs/mm-stableswap-polygon/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as sdk from "@defillama/sdk";
import { univ2Adapter } from "../../helpers/getUniSubgraphVolume";
import { univ2Adapter2 } from "../../helpers/getUniSubgraphVolume";
import { CHAIN } from "../../helpers/chains";

export default univ2Adapter({
export default univ2Adapter2({
[CHAIN.POLYGON]: sdk.graph.modifyEndpoint('HTJcrXUUtrVFKyNHZH99ywRx3TQm5ChSFVbn3oBiqGq6')
}, {
factoriesName: "pancakeFactories",
Expand Down
4 changes: 2 additions & 2 deletions dexs/shibaswap/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as sdk from "@defillama/sdk";
import { CHAIN } from "../../helpers/chains";
import { univ2Adapter } from "../../helpers/getUniSubgraphVolume";
import { univ2Adapter2 } from "../../helpers/getUniSubgraphVolume";

const endpoints = {
[CHAIN.ETHEREUM]: sdk.graph.modifyEndpoint('FvP7tK71rX51wsb663j5GRx2YTtDRa1Adq8QSCi5akLS'),
};

const adapter = univ2Adapter(endpoints, {
const adapter = univ2Adapter2(endpoints, {
factoriesName: "factories",
dayData: "dayData",
dailyVolume: "volumeUSD",
Expand Down
5 changes: 2 additions & 3 deletions dexs/solarbeam/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import * as sdk from "@defillama/sdk";
import { CHAIN } from "../../helpers/chains";
import { univ2Adapter } from "../../helpers/getUniSubgraphVolume";
import { univ2Adapter2 } from "../../helpers/getUniSubgraphVolume";

const adapter = univ2Adapter({
const adapter = univ2Adapter2({
[CHAIN.MOONRIVER]: sdk.graph.modifyEndpoint('71vx2Ph76RyX8y7RRqzNKToMm4w6now3YBJjAWpGyUCP')
},{
hasTotalVolume: false,
});
adapter.adapter.moonriver.start = 1630903340;
export default adapter;
4 changes: 2 additions & 2 deletions dexs/stellaswap/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.MOONBEAN]: sdk.graph.modifyEndpoint('HgSAfZvHEDbAVuZciPUYEqFzhAUnjJWmyix5C1R2tmTp')
}, {});
adapters.adapter.moonbeam.start = 1641960253;
Expand Down
2 changes: 1 addition & 1 deletion options/pancakeswap-options/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CHAIN } from "../../helpers/chains";
import { FetchOptions, SimpleAdapter } from "../../adapters/types";

const url: { [s: string]: string } = {
[CHAIN.ARBITRUM]: "https://api.0xgraph.xyz/api/public/e2146f32-5728-4755-b1d1-84d17708c119/subgraphs/dopex-v2-clamm-public/v0.0.2/gn"
[CHAIN.ARBITRUM]: "https://api.0xgraph.xyz/api/public/e2146f32-5728-4755-b1d1-84d17708c119/subgraphs/dopex-v2-clamm-public/-/gn"
}

const query = gql`
Expand Down

0 comments on commit db59223

Please sign in to comment.