File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
const { request, gql } = require ( 'graphql-request' ) ;
2
2
3
- const GRAPH_URL = 'https://blue- api.morpho.org/graphql' ;
3
+ const GRAPH_URL = 'https://api.morpho.org/graphql' ;
4
4
const CHAINS = {
5
5
ethereum : 1 ,
6
6
base : 8453 ,
7
+ optimism : 10 ,
8
+ hyperliquid : 999 ,
9
+ katana : 747474 ,
10
+ arbitrum : 42161 ,
11
+ unichain : 130 ,
12
+ polygon : 137
7
13
} ;
8
14
9
15
const gqlQueries = {
@@ -170,9 +176,7 @@ const apy = async () => {
170
176
apyBase : vault . state . apy * 100 ,
171
177
tvlUsd : vault . state . totalAssetsUsd || 0 ,
172
178
underlyingTokens : [ vault . asset . address ] ,
173
- url : `https://app.morpho.org/vault?vault=${ vault . address } &network=${
174
- chain === 'ethereum' ? 'mainnet' : chain
175
- } `,
179
+ url : `https://app.morpho.org/${ chain } /vault/${ vault . address } ` ,
176
180
apyReward,
177
181
rewardTokens,
178
182
} ;
@@ -205,9 +209,7 @@ const apy = async () => {
205
209
market . state . supplyAssetsUsd - market . state . borrowAssetsUsd ,
206
210
ltv : market . lltv / 1e18 ,
207
211
mintedCoin : market . loanAsset ?. symbol ,
208
- url : `https://app.morpho.org/market?id=${ market . uniqueKey } &network=${
209
- chain === 'ethereum' ? 'mainnet' : chain
210
- } `,
212
+ url : `https://app.morpho.org/market?id=${ market . uniqueKey } &network=${ chain } ` ,
211
213
apyRewardBorrow,
212
214
rewardTokens : apyRewardBorrow > 0 ? rewardTokens : [ ] ,
213
215
} ;
You can’t perform that action at this time.
0 commit comments