Skip to content

Commit e215139

Browse files
authored
Revert "fix: FolksFinance xAlgo circulating supply calculation" (DefiLlama#13366)
1 parent 43e6274 commit e215139

File tree

4 files changed

+4
-152
lines changed

4 files changed

+4
-152
lines changed

projects/folks-xalgo/constants.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

projects/folks-xalgo/index.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
const { getAssetInfo } = require("../helper/chain/algorand");
2-
const { getCachedPrices } = require('./prices');
3-
const { xAlgoAssetId, algoAssetId } = require('./constants');
2+
3+
const xAlgoAssetId = 1134696561;
44

55
module.exports = {
66
timetravel: false,
77
algorand: {
88
tvl: async () => {
9-
const prices = await getCachedPrices();
10-
const xAlgoPrice = prices[xAlgoAssetId];
11-
const algoPrice = prices[algoAssetId];
12-
139
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 };
1712
},
1813
},
1914
};

projects/folks-xalgo/prices.js

Lines changed: 0 additions & 92 deletions
This file was deleted.

projects/folks-xalgo/utils.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)