@@ -11,43 +11,31 @@ import {
11
11
HECO ,
12
12
POLYGON ,
13
13
XDAI ,
14
+ MOONRIVER
14
15
} from "../helper/chains" ;
15
16
import { DexVolumeAdapter } from "../dexVolume.type" ;
16
17
import { Chain } from "@defillama/sdk/build/general" ;
17
18
18
19
const endpoints = {
19
- [ ARBITRUM ] :
20
- "https://api.thegraph.com/subgraphs/name/sushiswap/arbitrum-exchange" ,
21
- [ AVAX ] :
22
- "https://api.thegraph.com/subgraphs/name/sushiswap/avalanche-exchange" ,
23
- [ BSC ] : "https://api.thegraph.com/subgraphs/name/sushiswap/bsc-exchange" ,
24
- // [CELO]: "https://api.thegraph.com/subgraphs/name/sushiswap/celo-exchange",
25
20
[ ETHEREUM ] : "https://api.thegraph.com/subgraphs/name/sushiswap/exchange" ,
21
+ [ BSC ] : "https://api.thegraph.com/subgraphs/name/sushiswap/bsc-exchange" ,
22
+ [ POLYGON ] : "https://api.thegraph.com/subgraphs/name/sushiswap/matic-exchange" ,
26
23
[ FANTOM ] : "https://api.thegraph.com/subgraphs/name/sushiswap/fantom-exchange" ,
27
- [ HARMONY ] :
28
- "https://sushi.graph.t.hmny.io/subgraphs/name/sushiswap/harmony-exchange" ,
24
+ [ ARBITRUM ] : "https://api.thegraph.com/subgraphs/name/sushiswap/arbitrum-exchange" ,
25
+ [ CELO ] : "https://api.thegraph.com/subgraphs/name/sushiswap/celo-exchange" ,
26
+ [ AVAX ] : "https://api.thegraph.com/subgraphs/name/sushiswap/avalanche-exchange" ,
27
+ [ HARMONY ] : "https://sushi.graph.t.hmny.io/subgraphs/name/sushiswap/harmony-exchange" ,
28
+ [ MOONRIVER ] : "https://api.thegraph.com/subgraphs/name/sushiswap/moonriver-exchange" ,
29
+ [ XDAI ] : "https://api.thegraph.com/subgraphs/name/sushiswap/xdai-exchange" ,
29
30
// [HECO]: "https://q.hg.network/subgraphs/name/heco-exchange/heco",
30
31
//'okexchain': 'https://q.hg.network/subgraphs/name/okex-exchange/oec',
31
32
//'okexchain': 'https://q.hg.network/subgraphs/name/sushiswap/okex-exchange',
32
- [ POLYGON ] : "https://api.thegraph.com/subgraphs/name/sushiswap/matic-exchange" ,
33
- [ XDAI ] : "https://api.thegraph.com/subgraphs/name/sushiswap/xdai-exchange" ,
34
33
} ;
35
34
36
35
const VOLUME_FIELD = "volumeUSD" ;
37
36
38
37
const graphs = getChainVolume ( {
39
- graphUrls : {
40
- [ ARBITRUM ] : endpoints [ ARBITRUM ] ,
41
- [ AVAX ] : endpoints [ AVAX ] ,
42
- [ BSC ] : endpoints [ BSC ] ,
43
- // [CELO]: endpoints[CELO],
44
- [ ETHEREUM ] : endpoints [ ETHEREUM ] ,
45
- [ FANTOM ] : endpoints [ FANTOM ] ,
46
- [ HARMONY ] : endpoints [ HARMONY ] ,
47
- // [HECO]: endpoints[HECO],
48
- [ POLYGON ] : endpoints [ POLYGON ] ,
49
- [ XDAI ] : endpoints [ XDAI ] ,
50
- } ,
38
+ graphUrls : endpoints ,
51
39
totalVolume : {
52
40
factory : "factories" ,
53
41
field : VOLUME_FIELD ,
0 commit comments