File tree Expand file tree Collapse file tree 4 files changed +4
-152
lines changed Expand file tree Collapse file tree 4 files changed +4
-152
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
const { getAssetInfo } = require ( "../helper/chain/algorand" ) ;
2
- const { getCachedPrices } = require ( './prices' ) ;
3
- const { xAlgoAssetId, algoAssetId } = require ( './constants' ) ;
2
+
3
+ const xAlgoAssetId = 1134696561 ;
4
4
5
5
module . exports = {
6
6
timetravel : false ,
7
7
algorand : {
8
8
tvl : async ( ) => {
9
- const prices = await getCachedPrices ( ) ;
10
- const xAlgoPrice = prices [ xAlgoAssetId ] ;
11
- const algoPrice = prices [ algoAssetId ] ;
12
-
13
9
const info = await getAssetInfo ( xAlgoAssetId ) ;
14
- const totalXAlgo = info . circulatingSupply / 10 ** info . decimals ;
15
- const totalAlgo = totalXAlgo * xAlgoPrice / algoPrice ;
16
- return { algorand : totalAlgo } ;
10
+ const total = info . circulatingSupply / 10 ** info . decimals ;
11
+ return { algorand : total } ;
17
12
} ,
18
13
} ,
19
14
} ;
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments