Skip to content

Commit cd5a4f8

Browse files
authored
Merge branch 'DefiLlama:main' into main
2 parents e93f732 + c534a78 commit cd5a4f8

File tree

1,321 files changed

+31193
-15322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,321 files changed

+31193
-15322
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore all files
2+
*

liquidations/aave-v2/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as sdk from "@defillama/sdk";
12
import { gql, request } from "graphql-request";
23
import { Liq } from "../utils/types";
34
import { getPagedGql } from "../utils/gql";
@@ -75,14 +76,14 @@ const rc: { [chain in Chains]: AaveAdapterResource } = {
7576
name: "aave",
7677
chain: Chains.ethereum,
7778
usdcAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
78-
subgraphUrl: "https://api.thegraph.com/subgraphs/name/aave/protocol-v2",
79+
subgraphUrl: sdk.graph.modifyEndpoint('8wR23o1zkS4gpLqLNU4kG3JHYVucqGyopL5utGxP2q1N'),
7980
explorerBaseUrl: "https://etherscan.io/address/",
8081
},
8182
// [Chains.polygon]: {
8283
// name: "aave",
8384
// chain: Chains.polygon,
8485
// usdcAddress: "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
85-
// subgraphUrl: "https://api.thegraph.com/subgraphs/name/aave/aave-v2-matic",
86+
// subgraphUrl: sdk.graph.modifyEndpoint('H1Et77RZh3XEf27vkAmJyzgCME2RSFLtDS2f4PPW6CGp'),
8687
// explorerBaseUrl: "https://polygonscan.com/address/",
8788
// },
8889
};

liquidations/benqi/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as sdk from "@defillama/sdk";
12
import { gql } from "graphql-request";
23
import { getPagedGql } from "../utils/gql";
34
import BigNumber from "bignumber.js";
@@ -12,7 +13,7 @@ import {
1213
totalCollateralValueInUsd,
1314
} from "../utils/compound-helpers";
1415

15-
const subgraphUrl = "https://api.thegraph.com/subgraphs/name/yhayun/benqi";
16+
const subgraphUrl = sdk.graph.modifyEndpoint('HcTvZi3fwucvRJvVmtFzNDTnomvMBk64xCLNQQg6GPAV');
1617

1718
const accountsQuery = gql`
1819
query accounts($lastId: ID, $pageSize: Int) {

liquidations/compound/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as sdk from "@defillama/sdk";
12
import { gql } from "graphql-request";
23
import { getPagedGql } from "../utils/gql";
34
import BigNumber from "bignumber.js";
@@ -12,7 +13,7 @@ import {
1213
totalCollateralValueInUsd,
1314
} from "../utils/compound-helpers";
1415

15-
const subgraphUrl = "https://api.thegraph.com/subgraphs/name/graphprotocol/compound-v2";
16+
const subgraphUrl = sdk.graph.modifyEndpoint('AAva7YSZBLar4MaxQ3MqdJDFXkkHEaCDeibKTnraex1x');
1617

1718
const accountsQuery = gql`
1819
query accounts($lastId: ID, $pageSize: Int) {

liquidations/euler/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import * as sdk from "@defillama/sdk";
12
import { gql } from "graphql-request";
23
import { getPagedGql } from "../utils/gql";
34
import BigNumber from "bignumber.js";
45
import { Liq } from "../utils/types";
56

6-
const subgraphUrl = "https://api.thegraph.com/subgraphs/name/euler-xyz/euler-mainnet";
7+
const subgraphUrl = sdk.graph.modifyEndpoint('EQBXhrF4ppZy9cBYnhPdrMCRaVas6seNpqviih5VRGmU');
78

89
const accountsQuery = gql`
910
query accounts($lastId: ID, $pageSize: Int) {

liquidations/mimo-protocol/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ const getSubgraphUrl = (chain: Chain) => {
4949

5050
switch (chain) {
5151
case Chain.ethereum: {
52-
subgraphUrl = "https://api.thegraph.com/subgraphs/name/m19/titan";
52+
subgraphUrl = sdk.graph.modifyEndpoint('FV3Dw1zMs97LpVPegWZKJv4bsbsZdrob2EqLCPxdcoDS');
5353
break;
5454
}
5555
case Chain.polygon: {
56-
subgraphUrl = "https://api.thegraph.com/subgraphs/name/m19/titanpolygon";
56+
subgraphUrl = sdk.graph.modifyEndpoint('EfFLqiwngmmtE5su2t1EsFoEttoj8KWervocfab1ofYT');
5757
break;
5858
}
5959
// case Chain.fantom: {
6060
// subgraphUrl =
61-
// "https://api.thegraph.com/subgraphs/name/rayxpub/titanfantom";
61+
// sdk.graph.modifyEndpoint('DkSQLWkkiNfeNG43NJnHsW9hfih8hDt4SHFTNMQgPHJH');
6262
// break;
6363
// }
6464
}

liquidations/trader-joe-lend/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import * as sdk from "@defillama/sdk";
12
import { gql } from "graphql-request";
23
import { getPagedGql } from "../utils/gql";
34
import BigNumber from "bignumber.js";
45
import { Liq } from "../utils/types";
56

6-
const subgraphUrl = "https://api.thegraph.com/subgraphs/name/traderjoe-xyz/lending";
7+
const subgraphUrl = sdk.graph.modifyEndpoint('JB5EdQqbddMjawMLYe3C5ifmhN9WKYvLdgAKoUy1CyYy');
78

89
const accountsQuery = gql`
910
query accounts($lastId: ID, $pageSize: Int) {

liquidations/venus/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "../utils/compound-helpers";
1616
const sdk = require("@defillama/sdk");
1717

18-
const subgraphUrl = "https://api.thegraph.com/subgraphs/name/venusprotocol/venus-subgraph";
18+
const subgraphUrl = sdk.graph.modifyEndpoint('7h65Zf3pXXPmf8g8yZjjj2bqYiypVxems5d8riLK1DyR');
1919

2020
const accountsQuery = gql`
2121
query accounts($lastId: ID, $pageSize: Int) {

0 commit comments

Comments
 (0)