File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
const { sumTokens2 } = require ( '../helper/unwrapLPs' ) ;
2
- const { graphQuery } = require ( '../helper/http' ) ;
2
+ const { cachedGraphQuery } = require ( '../helper/cache' )
3
3
4
4
// @dev : mapping of XCHF to its Bridge
5
5
const XCHFBridge = [ "0xb4272071ecadd69d933adcd19ca99fe80664fc08" , "0x7bbe8F18040aF0032f4C2435E7a76db6F1E346DF" ] ;
@@ -8,8 +8,8 @@ async function tvl(api) {
8
8
const tokensAndOwners = [ XCHFBridge ] ;
9
9
10
10
// @dev : query of positions from minting hubs via frankencoin graph (ponder)
11
- const { positionV1s } = await graphQuery ( ' https://ponder.frankencoin.com/ ', '{ positionV1s { items { position collateral } } }' ) ;
12
- const { positionV2s } = await graphQuery ( ' https://ponder.frankencoin.com/ ', '{ positionV2s { items { position collateral } } }' ) ;
11
+ const { positionV1s } = await cachedGraphQuery ( 'frankencoinV1' , ' https://ponder.frankencoin.com', '{ positionV1s { items { position collateral } } }' ) ;
12
+ const { positionV2s } = await cachedGraphQuery ( 'frankencoinV2' , ' https://ponder.frankencoin.com', '{ positionV2s { items { position collateral } } }' ) ;
13
13
14
14
// @dev : mapping of positions from minting hubs
15
15
positionV1s ?. items ?. forEach ( i => tokensAndOwners . push ( [ i . collateral , i . position ] ) ) ;
You can’t perform that action at this time.
0 commit comments